8000 bug #44300 [FrameworkBundle] Fix property-info phpstan extractor disc… · symfony/symfony@c20fe66 · GitHub
[go: up one dir, main page]

Skip to content

Commit c20fe66

Browse files
bug #44300 [FrameworkBundle] Fix property-info phpstan extractor discovery (1ed)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] Fix property-info phpstan extractor discovery | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #44299 | License | MIT | Doc PR | - <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch 5.x. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry --> Commits ------- 396b3f8 [FrameworkBundle] Fix property-info phpstan extractor discovery
2 parents b5d3f56 + 396b3f8 commit c20fe66

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;
@@ -1850,7 +1851,7 @@ private function registerPropertyInfoConfiguration(ContainerBuilder $container,
18501851

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

0 commit comments

Comments
 (0)
0