Skip to content

Commit

Permalink
Exclude E_DEPRECATED from error_reporting
Browse files Browse the repository at this point in the history
This error is filtered in https://github.com/phpstan/phpstan-src/blob/5797c27e0d7e943b67b717f023e2ac2fd8a25140/src/Analyser/FileAnalyser.php#L329
anyway. But it might still be seen when the deprecation is triggered by one of autoload.files
in included Composer autoloaders.
  • Loading branch information
ondrejmirtes committed Oct 30, 2024
1 parent f361e35 commit 277e34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/phpstan
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use PHPStan\Internal\ComposerHelper;
use Symfony\Component\Console\Helper\ProgressBar;

(function () {
error_reporting(E_ALL);
error_reporting(E_ALL & ~E_DEPRECATED);
ini_set('display_errors', 'stderr');
if (version_compare(PHP_VERSION, '7.4.0', '<')) {
// PHP earlier than 7.4.x with OpCache triggers a bug when we intercept
Expand Down

0 comments on commit 277e34b

Please sign in to comment.