Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 396b3f8

Browse files
authored
[FrameworkBundle] Fix property-info phpstan extractor discovery
1 parent 4e7e429 commit 396b3f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Doctrine\Common\Annotations\Reader;
1717
use Http\Client\HttpClient;
1818
use phpDocumentor\Reflection\DocBlockFactoryInterface;
19+
use phpDocumentor\Reflection\Types\ContextFactory;
1920
use PHPStan\PhpDocParser\Parser\PhpDocParser;
2021
use Psr\Cache\CacheItemPoolInterface;
2122
use Psr\Container\ContainerInterface as PsrContainerInterface;
@@ -1849,7 +1850,7 @@ private function registerPropertyInfoConfiguration(ContainerBuilder $container,
18491850

18501851
if (
18511852
ContainerBuilder::willBeAvailable('phpstan/phpdoc-parser', PhpDocParser::class, ['symfony/framework-bundle', 'symfony/property-info'], true)
1852-
&& ContainerBuilder::willBeAvailable('phpdocumentor/type-resolver', PhpDocParser::class, ['symfony/framework-bundle', 'symfony/property-info'], true)
1853+
&& ContainerBuilder::willBeAvailable('phpdocumentor/type-resolver', ContextFactory::class, ['symfony/framework-bundle', 'symfony/property-info'], true)
18531854
) {
18541855
$definition = $container->register('property_info.phpstan_extractor', PhpStanExtractor::class);
18551856
$definition->addTag('property_info.type_extractor', ['priority' => -1000]);

0 commit comments

Comments
 (0)