From ce5e7d884c5a3c926edb02d6ce99666ac99544e6 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 16 Oct 2024 10:02:24 +0200 Subject: [PATCH 1/2] Remove dead code --- bin/phpstan | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bin/phpstan b/bin/phpstan index 978d755ac1..1b1a8009c8 100755 --- a/bin/phpstan +++ b/bin/phpstan @@ -19,10 +19,6 @@ use Symfony\Component\Console\Helper\ProgressBar; ini_set('opcache.enable', 'Off'); } - if (PHP_VERSION_ID < 70300) { - gc_disable(); // performance boost - } - define('__PHPSTAN_RUNNING__', true); $analysisStartTime = microtime(true); From b016da48c353d2cb21470f189520bf288124333c Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 16 Oct 2024 10:03:53 +0200 Subject: [PATCH 2/2] remove more dead code --- bin/phpstan | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bin/phpstan b/bin/phpstan index 1b1a8009c8..ba27551db6 100755 --- a/bin/phpstan +++ b/bin/phpstan @@ -13,11 +13,6 @@ use Symfony\Component\Console\Helper\ProgressBar; (function () { error_reporting(E_ALL); 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 - // custom autoloaders' reads to discover file paths. See PHPStan #4881. - ini_set('opcache.enable', 'Off'); - } define('__PHPSTAN_RUNNING__', true);