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

Unable to use ray on docker with PHP 7.4 (php:7.4.9-fpm-alpine image) #27

Closed
fredattack opened this issue Jul 9, 2021 · 3 comments
Closed

Comments

@fredattack
Copy link

Hi guys,

I can't use ray in docker container when i use php version 7.4 (php:7.4.9-fpm-alpine), but i have'nt any problems with php version 8.0.

I really can't update all this project for php 8.0 .
Can you help me??
During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /var/www/html/vendor/spatie/macroable/src/Macroable.php:14 Stack trace: #0 /var/www/html/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/var/www/html/v...') #1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Spatie\\Macroabl...') #2 /var/www/html/vendor/spatie/ray/src/Ray.php(50): spl_autoload_call('Spatie\\Macroabl...') #3 /var/www/html/vendor/composer/ClassLoader.php(480): include('/var/www/html/v...') #4 /var/www/html/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/var/www/html/v...') #5 [internal function]: Composer\Autoload\ClassLoader->loadClass('Spatie\\Ray\\Ray') #6 /var/www/html/vendor/spatie/laravel-ray/src/Ray.php(41): spl_autoload_call('Spatie\\Ray\\Ray') #7 /var/www/html/vendor/composer/ClassLoader.php(480): include('/var/www/html/v...')

@freekmurze
Copy link
Member

The package doesn't contain a syntax error. It seems you're not using PHP 8.

@fredattack
Copy link
Author

hi freek,

No i dont use PHP 8 it's 7.4 but the requirements for Ray is PHP 7 and no PHP 8 .

@Muffinman
Copy link

I just got hit by this one as well.

From the looks of Ray's composer.json you could probably require spatie/macroable at ^1.0.1 and Ray should still work.

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