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

PHP Parse error: syntax error, unexpected '?' ..../Parser.php on line 1119 #158

Closed
DeLoWaN opened this issue Jul 6, 2020 · 3 comments
Closed

Comments

@DeLoWaN
Copy link

DeLoWaN commented Jul 6, 2020

Hello, there is a parse error in 3.2.2 version. I run it with PHP7.0:

Command line used:

php7.0 cachetool-3.2.2.phar opcache:reset --fcgi=/var/run/php/php7.0-fpm.sock

Results

PHP Parse error:  syntax error, unexpected '?' in phar:///XXXXX/tools/cachetool-3.2.2.phar/vendor/symfony/yaml/Parser.php on line 1119

There is no problem with cachetool-3.2.1.phar.

If I try to run it with PHP7.4:

PHP Fatal error:  Declaration of CacheTool\Monolog\ConsoleHandler::handle(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::handle(array $record): bool in phar:///home/tools/cachetool-3.2.2.phar/src/CacheTool/Monolog/ConsoleHandler.php on line 83
PHP Stack trace:
PHP   1. {main}() /home/tools/cachetool-3.2.2.phar:0
PHP   2. require() /home/tools/cachetool-3.2.2.phar:10
PHP   3. CacheTool\Console\Application->run() phar:///home/tools/cachetool-3.2.2.phar/bin/cachetool:10
PHP   4. CacheTool\Console\Application->doRun() phar:///home/tools/cachetool-3.2.2.phar/vendor/symfony/console/Application.php:140
PHP   5. spl_autoload_call() phar:///home/tools/cachetool-3.2.2.phar/src/CacheTool/Console/Application.php:128
PHP   6. Composer\Autoload\ClassLoader->loadClass() phar:///home/tools/cachetool-3.2.2.phar/src/CacheTool/Console/Application.php:128
PHP   7. Composer\Autoload\includeFile() phar:///home/tools/cachetool-3.2.2.phar/vendor/composer/ClassLoader.php:322
PHP   8. include() phar:///home/tools/cachetool-3.2.2.phar/vendor/composer/ClassLoader.php:444

Again, no problems with 3.2.1.

@dvershinin
Copy link

PHP 7.2.32, running cachetool 3.2.2, fails similiarly:

PHP Fatal error:  Declaration of CacheTool\Monolog\ConsoleHandler::handle(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::handle(array $record): bool in phar:///usr/bin/cachetool/src/CacheTool/Monolog/ConsoleHandler.php on line 36

@gordalina
Copy link
Owner

Re-issued 3.2.2, try with this binary: https://gordalina.github.io/cachetool/downloads/cachetool-3.2.2.phar

@gordalina
Copy link
Owner

Closing the issue for now, feel free to reopen.

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

3 participants