Skip to content

Commit 62c81ba

Browse files
committed
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
2 parents aefc87a + 05630e6 commit 62c81ba

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

bin/phpstan

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ use Symfony\Component\Console\Helper\ProgressBar;
151151
$application->setDefaultCommand('analyse');
152152
ProgressBar::setFormatDefinition('file_download', ' [%bar%] %percent:3s%% %fileSize%');
153153

154+
$composerAutoloaderProjectPaths = array_map(function(string $s): string {
155+
return str_replace(DIRECTORY_SEPARATOR, '/', $s);
156+
}, $composerAutoloaderProjectPaths);
154157
$reversedComposerAutoloaderProjectPaths = array_values(array_unique(array_reverse($composerAutoloaderProjectPaths)));
158+
155159
$application->add(new AnalyseCommand($reversedComposerAutoloaderProjectPaths, $analysisStartTime));
156160
$application->add(new WorkerCommand($reversedComposerAutoloaderProjectPaths));
157161
$application->add(new ClearResultCacheCommand($reversedComposerAutoloaderProjectPaths));

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"nikic/php-parser": "^5.2.0",
2626
"ondram/ci-detector": "^3.4.0",
2727
"ondrejmirtes/better-reflection": "6.42.0.8",
28-
"phpstan/php-8-stubs": "0.3.105",
28+
"phpstan/php-8-stubs": "0.3.106",
2929
"phpstan/phpdoc-parser": "^2.0",
3030
"psr/http-message": "^1.1",
3131
"react/async": "^3",

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PHPStan\Analyser;
44

55
use EnumTypeAssertions\Foo;
6+
use PHPStan\File\FileHelper;
67
use PHPStan\Testing\TypeInferenceTestCase;
78
use stdClass;
89
use function array_shift;
@@ -205,7 +206,10 @@ public static function dataFile(): iterable
205206
$base = dirname(__DIR__, 3) . '/';
206207
$baseLength = strlen($base);
207208

209+
$fileHelper = new FileHelper($base);
208210
foreach (self::findTestFiles() as $file) {
211+
$file = $fileHelper->normalizePath($file);
212+
209213
$testName = $file;
210214
if (str_starts_with($file, $base)) {
211215
$testName = substr($file, $baseLength);

0 commit comments

Comments
 (0)