Skip to content

Commit 1a17698

Browse files
committed
Fixes
1 parent eab4542 commit 1a17698

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

bin/phpstan

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,15 @@ use Symfony\Component\Console\Helper\ProgressBar;
120120
if (
121121
is_array($after)
122122
&& count($after) > 0
123-
&& is_object($after[0])
124-
&& get_class($after[0]) === \Composer\Autoload\ClassLoader::class
125123
) {
126-
continue;
124+
if (is_object($after[0])
125+
&& get_class($after[0]) === \Composer\Autoload\ClassLoader::class
126+
) {
127+
continue;
128+
}
129+
if ($after[0] === 'PHPStan\\PharAutoloader') {
130+
continue;
131+
}
127132
}
128133
foreach ($autoloadFunctionsBefore as $before) {
129134
if ($after === $before) {

compiler/build/scoper.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ function (string $filePath, string $prefix, string $content): string {
172172
},
173173
function (string $filePath, string $prefix, string $content): string {
174174
if (!in_array($filePath, [
175+
'bin/phpstan',
175176
'src/Testing/TestCaseSourceLocatorFactory.php',
176177
'src/Testing/PHPStanTestCase.php',
177178
'vendor/ondrejmirtes/better-reflection/src/SourceLocator/Type/ComposerSourceLocator.php',

0 commit comments

Comments
 (0)