spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
555 stars 101 forks source link

Not compatible with php 8.0 #765

Closed pintend closed 1 year ago

pintend commented 1 year ago

Describe the bug I installed Laravel ray in an old project which is running on php 8.0

ray says its supported by ^7.3|^8.0" but one of its dependancies were updating to require php 8.1 https://github.com/symfony/stopwatch/commit/77dedae82ce2a26e2e9b481855473fc3b3e4e54d Versions

PHP version: 8.0.26 Laravel version (if applicable):

To Reproduce Steps to reproduce the behavior:

  1. install Laravel ray
  2. visit any url or do something in the console

i get "Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.26."

To Fix composer require symfony/stopwatch:6.0

freekmurze commented 1 year ago

Can you install one of the older package versions?

pintend commented 1 year ago

i probably can install an older version, i can also go through all the symfony dependencies and lock their versions but then i get a messy composer.json

the issue here is that this package says it is supported by "php": "^7.3|^8.0", but really it should be "php": "^7.3|^8.1",. The problem is many symfony dependencies` bumped to 8.1 as a minor update while that is a breaking change. for a fix here you can probably just lock it to 6.0 which supports php >=8.0 while 6.1 supports >=8.1

for me personally im installing php 8.1 anyway as ill have this issue with new projects as well if not

pintend commented 1 year ago

well after a brew upgrade im now using php 8.2 by default, but this issue technically is still an issue even if its not affecting me at the moment

freekmurze commented 1 year ago

I'm thinking there are older version that people can use, so that they will not bump into this issue. Closing for now.