spatie / laravel-ray

Debug with Ray to fix problems faster in Laravel apps
https://myray.app
MIT License
291 stars 64 forks source link

Add support for PHPStan 2.0 #367

Open sweptsquash opened 18 hours ago

sweptsquash commented 18 hours ago

This PR resolves https://github.com/spatie/laravel-ray/issues/366

Currently anyone wishing to use PHPStan 2.0 / LaraStan 3.0 are unable to utilise the awesome sauce of Spatie Ray. This is related to package rector/rector, which currently no release tagged for PHPStan 2.0 yet. But it's in the testing phase see the open issue for more details https://github.com/rectorphp/rector/issues/8815#issuecomment-2493467044

Please note once the release has been tagged and released for rector/rector I will update this PR with the tags correctly for the rector/rector in the composer.json file.

I've also taken the feedback raised in https://github.com/spatie/laravel-ray/pull/364 and made changes to the phpstan-baseline.neon file.

Related PR: https://github.com/spatie/ray/pull/946