fix phsptan 0.11.13 compatibility

This commit is contained in:
Tomas Votruba 2019-08-14 20:24:46 +02:00
parent 0ba915eede
commit 379278296d
2 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,7 @@
"nette/utils": "^2.5|^3.0",
"nikic/php-parser": "^4.2.2",
"phpstan/phpdoc-parser": "^0.3.5",
"phpstan/phpstan": "^0.11.10",
"phpstan/phpstan": "^0.11.13",
"phpstan/phpstan-phpunit": "^0.11.2",
"sebastian/diff": "^3.0",
"symfony/console": "^3.4|^4.2",

View File

@ -7,6 +7,7 @@ use PHPStan\Analyser\ScopeContext;
use PHPStan\Analyser\ScopeFactory as PHPStanScopeFactory;
use PHPStan\Analyser\TypeSpecifier;
use PHPStan\Broker\Broker;
use PHPStan\Rules\Properties\PropertyReflectionFinder;
use Rector\PhpParser\Printer\BetterStandardPrinter;
final class ScopeFactory
@ -50,6 +51,7 @@ final class ScopeFactory
$this->broker,
$this->betterStandardPrinter,
$this->typeSpecifier,
new PropertyReflectionFinder(),
ScopeContext::create($filePath)
);
}