| 1 | <?php |
||
| 11 | class Enum implements Rule |
||
| 12 | { |
||
| 13 | protected $rule = 'enum'; |
||
| 14 | |||
| 15 | /** @var Enumerable */ |
||
| 16 | protected $enum; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | protected $attribute; |
||
| 20 | |||
| 21 | /** @var mixed */ |
||
| 22 | protected $value; |
||
| 23 | |||
| 24 | 12 | public function __construct(string $enum) |
|
| 32 | |||
| 33 | 12 | public function passes($attribute, $value): bool |
|
| 46 | |||
| 47 | public function message(): string |
||
| 55 | } |
||
| 56 |
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..