| 1 | <?php |
||
| 19 | class NamedDeferred extends Deferred implements Identifiable |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var TypeNameInterface |
||
| 23 | */ |
||
| 24 | private $name; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * NamedDeferred constructor. |
||
| 28 | * @param DefinitionInterface $def |
||
| 29 | * @param ContextInterface $ctx |
||
| 30 | * @param \Closure|null $then |
||
| 31 | */ |
||
| 32 | public function __construct(DefinitionInterface $def, ContextInterface $ctx, \Closure $then = null) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return DefinitionInterface |
||
| 41 | */ |
||
| 42 | public function getDefinition(): DefinitionInterface |
||
| 46 | } |
||
| 47 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..