Skip to content

Commit e928cfc

Browse files
committed
Compatibility with latest PHPStan
1 parent 675703d commit e928cfc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": "^7.1 || ^8.0",
1717
"ext-simplexml": "*",
18-
"phpstan/phpstan": "^0.12.26"
18+
"phpstan/phpstan": "^0.12.51"
1919
},
2020
"conflict": {
2121
"symfony/framework-bundle": "<3.0"

tests/Type/Symfony/ExtensionTestCase.php

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use PHPStan\Cache\Cache;
1212
use PHPStan\File\FileHelper;
1313
use PHPStan\Node\VirtualNode;
14+
use PHPStan\Php\PhpVersion;
1415
use PHPStan\PhpDoc\PhpDocInheritanceResolver;
1516
use PHPStan\PhpDoc\PhpDocNodeResolver;
1617
use PHPStan\PhpDoc\PhpDocStringResolver;
@@ -51,6 +52,7 @@ protected function processFile(
5152
$this->getClassReflectionExtensionRegistryProvider(),
5253
$parser,
5354
$fileTypeMapper,
55+
new PhpVersion(PHP_VERSION_ID),
5456
new PhpDocInheritanceResolver($fileTypeMapper),
5557
$fileHelper,
5658
$typeSpecifier,

0 commit comments

Comments
 (0)