1 | <?php |
||
18 | class DeferredResult implements DeferredResolverInterface { |
||
19 | |||
20 | /** @var \Youshido\GraphQL\Execution\DeferredResolver */ |
||
21 | private $resolver; |
||
22 | |||
23 | /** @var callable */ |
||
24 | protected $callback; |
||
25 | |||
26 | /** @var mixed */ |
||
27 | public $result; |
||
28 | |||
29 | 4 | public function __construct(DeferredResolverInterface $resolver, callable $callback) |
|
34 | |||
35 | 4 | public function resolve() { |
|
38 | } |
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.