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 #101

Closed
kkrieger85 opened this Issue Mar 14, 2019 · 3 comments

Comments

Projects
None yet
1 participant
@kkrieger85
Copy link

kkrieger85 commented Mar 14, 2019

PHP Parse error:  syntax error, unexpected '?', expecting variable (T_VARIABLE) in /var/www/vhosts/shopschmiede.eu/sylius.shopschmiede.eu/vendor/thecodingmachine/safe/generated/apc.php on line 92

I tried to install Sylius/Sylius via composer with php7.3

/opt/plesk/php/7.3/bin/php /usr/lib/plesk-9.0/composer.phar create-project sylius/sylius-standard

Used Version (from composer.lock)

{
            "name": "thecodingmachine/safe",
            "version": "v0.1.13",
            "source": {
                "type": "git",
                "url": "https://github.com/thecodingmachine/safe.git",
                "reference": "4a8c8e55e6f6932f6d836fac74e33ec22d683fe3"
            },
@kkrieger85

This comment has been minimized.

@kkrieger85

This comment has been minimized.

Copy link
Author

kkrieger85 commented Mar 14, 2019

Seems, that server CLI PHP Version still 7.0.x

@kkrieger85

This comment has been minimized.

Copy link
Author

kkrieger85 commented Mar 14, 2019

Solved it via using PHP7.3.x instead of default "php" which was 7.0.x.

@kkrieger85 kkrieger85 closed this Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.