| 1 | <?php |
||
| 19 | abstract class AbstractUnionType extends AbstractType |
||
| 20 | { |
||
| 21 | use ConfigCallTrait, AutoNameTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * ObjectType constructor. |
||
| 25 | * @param $config |
||
| 26 | */ |
||
| 27 | 4 | public function __construct($config = []) |
|
| 36 | |||
| 37 | abstract public function getTypes(); |
||
| 38 | |||
| 39 | abstract public function resolveType($object); |
||
| 40 | |||
| 41 | public function build($config) {} |
||
| 42 | |||
| 43 | public function resolve($value = null, $args = []) |
||
| 47 | |||
| 48 | 4 | public function getKind() |
|
| 52 | |||
| 53 | public function getNamedType() |
||
| 57 | |||
| 58 | public function isValidValue($value) |
||
| 62 | |||
| 63 | } |
||
| 64 |
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..