1 | <?php |
||
9 | class Schema extends AbstractSchema { |
||
10 | |||
11 | /** |
||
12 | * The corresponding plugin for this schema. |
||
13 | * |
||
14 | * @var \Drupal\graphql\Plugin\GraphQL\SchemaPluginInterface |
||
15 | */ |
||
16 | protected $builder; |
||
17 | |||
18 | /** |
||
19 | * Schema constructor. |
||
20 | * |
||
21 | * @param \Drupal\graphql\Plugin\GraphQL\PluggableSchemaBuilderInterface $builder |
||
22 | * The schema builder. |
||
23 | * @param array $config |
||
24 | * The schema configuration array. |
||
25 | */ |
||
26 | public function __construct(PluggableSchemaBuilderInterface $builder, array $config = []) { |
||
30 | |||
31 | /** |
||
32 | * Retrieves the schema's plugin instance. |
||
33 | * |
||
34 | * @return \Drupal\graphql\Plugin\GraphQL\PluggableSchemaBuilderInterface |
||
35 | * The schema builder. |
||
36 | */ |
||
37 | public function getSchemaBuilder() { |
||
38 | return $this->builder; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function build(SchemaConfig $config) { |
||
47 | |||
48 | } |
||
49 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.