-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
PHP8 fatal error suppression #4309
Comments
This bug report is missing a link to reproduction on phpstan.org. |
Hello, PHPStan out of the box does not output this message. This is most likely caused by your custom error handler registered most likely by a bootstrap file. |
mkdir doesn't produce a fatal error anyway, does it? |
Yeah, it doesn't, it's a warning. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
Since PHP 8, @ Error Suppression operator does not silent fatal errors anymore.
See https://php.watch/versions/8.0/fatal-error-suppression for more.
For exemple, this line :
https://github.com/phpstan/phpstan-rrc/blob/3a08cb018572938ca6b90f861c5fbca17baeab4c/src/Command/CommandHelper.php#L238
now output :
Warning Error: mkdir(): File exists In [phar:///var/www/html/vendor/phpstan/phpstan/phpstan/src/Command/CommandHelper.php, line 183]
Nothing is really broken but the error output is not expected and might be confusing for some people ...
The text was updated successfully, but these errors were encountered: