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 syntax error #31

Open
EvgenyLin opened this issue Dec 20, 2021 · 1 comment
Open

PHP syntax error #31

EvgenyLin opened this issue Dec 20, 2021 · 1 comment

Comments

@EvgenyLin
Copy link

EvgenyLin commented Dec 20, 2021

Just installed by
composer require --dev peridot-php/peridot peridot-php/leo

$ ./vendor/bin/peridot
PHP Parse error: syntax error, unexpected token "match" in /home/dev/onion/vendor/peridot-php/leo/specs/responder/responder.spec.php on line 18

$ php -v
PHP 8.1.0 (cli) (built: Nov 25 2021 20:22:03) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0, Copyright (c) Zend Technologies
with Zend OPcache v8.1.0, Copyright (c), by Zend Technologies

$ uname -a
Linux aj 5.4.0-92-lowlatency #103-Ubuntu SMP PREEMPT Fri Nov 26 17:05:05 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

@kfwebmaster
Copy link

kfwebmaster commented Aug 24, 2023

I am getting similar errors:

PHP Parse error: syntax error, unexpected token "match" in .../app/vendor/peridot-php/leo/specs/matcher/match.spec.php on line 11

Parse error: syntax error, unexpected token "match", expecting variable in .../app/vendor/peridot-php/leo/src/Formatter/Formatter.php on line 40

$ php -v
PHP 8.0.29 (cli) (built: Jun 15 2023 05:07:53) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.29, Copyright (c) Zend Technologies
with Zend OPcache v8.0.29, Copyright (c), by Zend Technologies

$ uname -a
Darwin a-macbook.home 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:43 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8112 arm64

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