| 1 | <?php |
||
| 9 | trait FieldablePluginTrait { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Build the list of implicit and explicit fields attached to the object type. |
||
| 13 | * |
||
| 14 | * @param \Drupal\graphql\Plugin\GraphQL\PluggableSchemaBuilderInterface $schemaBuilder |
||
| 15 | * Instance of the schema manager to resolve dependencies. |
||
| 16 | * |
||
| 17 | * @return \Youshido\GraphQL\Field\FieldInterface[] |
||
| 18 | * The type object. |
||
| 19 | */ |
||
| 20 | protected function buildFields(PluggableSchemaBuilderInterface $schemaBuilder) { |
||
| 37 | |||
| 38 | } |
||
| 39 |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.jsonfile (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.jsonto be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
requireorrequire-devsection?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceofchecks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.