Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cachetool 6.1.1 self-update fails #173

Closed
onlime opened this issue Jan 25, 2021 · 1 comment
Closed

Cachetool 6.1.1 self-update fails #173

onlime opened this issue Jan 25, 2021 · 1 comment

Comments

@onlime
Copy link

onlime commented Jan 25, 2021

Using self:update to update Cachetool worked fine in the past. But since 6.1.1 (or since recently - only running self-update once a week) I get:

$ cachetool --version
CacheTool 6.1.1

$ cachetool -q self:update

Fatal error: Uncaught TypeError: Return value of "SelfUpdate\SelfUpdateCommand::execute()" must be of the type int, "null" returned. in phar:///usr/local/bin/cachetool.phar/vendor/symfony/console/Command/Command.php:258
Stack trace:
#0 phar:///usr/local/bin/cachetool.phar/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 phar:///usr/local/bin/cachetool.phar/src/Console/Application.php(141): Symfony\Component\Console\Application->doRunCommand(Object(SelfUpdate\SelfUpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/cachetool.phar/vendor/symfony/console/Application.php(290): CacheTool\Console\Application->doRunCommand(Object(SelfUpdate\SelfUpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 phar:///usr/local in phar:///usr/local/bin/cachetool.phar/vendor/symfony/console/Command/Command.php on line 258

This runs on a Debian Buster with PHP 7.4:

$ /usr/bin/env php --version
PHP 7.4.14 (cli) (built: Jan 12 2021 13:59:46) ( NTS )

might be related to #172

BTW, could you please also introduce a self-update alias for self:update, as most other tools (Composer, Symfony CLI,...) provide this.

@gordalina
Copy link
Owner

Fixed in v6.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants