GraphQLBundle
GraphQLBundle copied to clipboard
doctrine/annotations probably should be required
| Q | A |
|---|---|
| Bug report? | yes |
| Feature request? | no |
| BC Break report? | no |
| RFC? | no |
| Version/Branch | master |
I'm not using doctrine/orm, so trying to use attributes in PHP8 leads to this exception:
!! Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#312
!! #message: """
!! Attempted to load interface "NamedArgumentConstructorAnnotation" from namespace "Doctrine\Common\Annotations".\n
!! Did you forget a "use" statement for another namespace?
!! """
!! #code: 0
!! #file: "./vendor/overblog/graphql-bundle/src/Annotation/Input.php"
!! #line: 17
!! trace: {
!! ./vendor/overblog/graphql-bundle/src/Annotation/Input.php:17 { …}
!! ./vendor/symfony/error-handler/DebugClassLoader.php:347 { …}
!! Symfony\Component\ErrorHandler\DebugClassLoader->loadClass() {}
!! ./vendor/symfony/dependency-injection/Compiler/RegisterAutoconfigureAttributesPass.php:52 { …}
!! ./vendor/symfony/dependency-injection/Compiler/RegisterAutoconfigureAttributesPass.php:40 { …}
!! ./vendor/symfony/dependency-injection/Compiler/Compiler.php:91 { …}
!! ./vendor/symfony/dependency-injection/ContainerBuilder.php:749 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:545 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:786 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:125 { …}
!! ./vendor/symfony/framework-bundle/Console/Application.php:168 { …}
!! ./vendor/symfony/framework-bundle/Console/Application.php:74 { …}
!! ./vendor/symfony/console/Application.php:167 { …}
!! ./vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:56 { …}
!! ./vendor/autoload_runtime.php:35 { …}
!! ./bin/console:11 {
!! ›
!! › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
!! ›
!! arguments: {
!! "/Users/kix/Documents/Code/spec-demos/vendor/autoload_runtime.php"
!! }
!! }
!! }
!! }
!! 2021-06-12T07:20:51+00:00 [critical] Uncaught Error: Interface "Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation" not found
!!
I guess doctrine/annotations should be a requirement for this to work?