You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "ContextFactory" from namespace "phpDocumentor\Reflection\Types".
Did you forget a "use" statement for another namespace?
at vendor/symfony/property-info/PhpStan/NameScopeFactory.php:48
at Symfony\Component\PropertyInfo\PhpStan\NameScopeFactory->extractFromFullClassName()
(vendor/symfony/property-info/PhpStan/NameScopeFactory.php:27)
at Symfony\Component\PropertyInfo\PhpStan\NameScopeFactory->create()
(vendor/symfony/property-info/Extractor/PhpStanExtractor.php:76)
at Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor->getTypes()
(vendor/symfony/property-info/PropertyInfoExtractor.php:112)
at Symfony\Component\PropertyInfo\PropertyInfoExtractor->extract()
(vendor/symfony/property-info/PropertyInfoExtractor.php:74)
at Symfony\Component\PropertyInfo\PropertyInfoExtractor->getTypes()
(src/Controller/TestController.php:17)
at App\Controller\TestController->__invoke()
(vendor/symfony/http-kernel/HttpKernel.php:152)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:74)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:35)
How to reproduce
symfony new --version next test && cd test
composer require symfony/property-info doctrine/annotations jms/serializer
cat <<EOT >> src/Controller/TestController.php
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route()
*/
class TestController extends AbstractController
{
public function __invoke(PropertyTypeExtractorInterface \$extractor): Response
{
\$extractor->getTypes(__CLASS__, 'container');
die('OK');
}
}
EOT
…overy (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
Symfony version(s) affected
5.4@dev
Description
How to reproduce
Possible Solution
#44300
Additional Context
No response
The text was updated successfully, but these errors were encountered: