Show deprecations on phpunit#1047
Conversation
Because you're using PHP 8.4; if you were using PHP 8.5 you would see it.
With these configurations, it did show me the Laravel 11 warnings, but you should run the tests in PHP 8.5. https://github.com/erikn69/laravel-auditing/actions/runs/23449357439/job/68221914863 And Laravel 11 reached its end of life before PHP 8.5 testing Laravel 11.x test |
|
You'll see the functions have a line through in my screenshot indicating they are deprecated but that is weird as I'm not running PHP 8.5 locally. Thanks vscode I guess 😅 Its also interesting that https://github.com/erikn69/laravel-auditing/actions/runs/23449357439/job/68221914863 is running phpunit 12 but thats not in composer.json 🤔 Either way, I'll take the github actions fail over whatever garbage my computer is doing 🙏 |
laravel-auditing/composer.json Line 51 in c4a15ab |
|
oh of course I was using an older version for those deprecated functions 🤦 |


@willpower232 I thought about
failOnDeprecation, but that would imply that the vendor's deprecation would also cause fails. Example: Laravel 11 with PHP 8.5 testsBut at least we can display deprecations messages to decide how to proceed
What do you think about it?