We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18340a3 commit ce5f316Copy full SHA for ce5f316
bin/phpstan
@@ -11,6 +11,11 @@ use Symfony\Component\Console\Helper\ProgressBar;
11
(function () {
12
error_reporting(E_ALL);
13
ini_set('display_errors', 'stderr');
14
+ if (version_compare(PHP_VERSION, '7.4.0', '<')) {
15
+ // PHP earlier than 7.4.x with OpCache triggers a bug when we intercept
16
+ // custom autoloaders' reads to discover file paths. See PHPStan #4881.
17
+ ini_set('opcache.enable', 'Off');
18
+ }
19
gc_disable(); // performance boost
20
21
define('__PHPSTAN_RUNNING__', true);
0 commit comments