1 | <?php |
||
7 | class SchemaBuilderFactory { |
||
8 | |||
9 | /** |
||
10 | * List of registered plugin managers. |
||
11 | * |
||
12 | * @var \Drupal\Component\Plugin\PluginManagerInterface[] |
||
13 | */ |
||
14 | protected $pluginManagers = []; |
||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | public function addPluginManager(PluginManagerInterface $pluginManager) { |
||
22 | |||
23 | /** |
||
24 | * Retrieve a schema builder instance. |
||
25 | * |
||
26 | * @param null $schemaReducer |
||
27 | * Schema reducer to apply to the schema. |
||
28 | * |
||
29 | * @return \Drupal\graphql\Plugin\GraphQL\SchemaBuilder The schema builder. |
||
30 | * The schema builder. |
||
31 | */ |
||
32 | public function getSchemaBuilder($schemaReducer = NULL) { |
||
36 | |||
37 | } |
||
38 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.