| 1 | <?php |
||
| 11 | 1 | class ConditionCallback extends BaseCondition { |
|
| 12 | /** |
||
| 13 | * @param callable $parameter |
||
|
1 ignored issue
–
show
|
|||
| 14 | * @throws \InvalidArgumentException |
||
| 15 | * @throws \UnexpectedValueException |
||
| 16 | */ |
||
| 17 | public function isAllowed($parameter = NULL): bool { |
||
| 27 | } |
||
| 28 | ?> |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.