| 1 | <?php |
||
| 14 | 1 | class ConditionPermission extends BaseCondition { |
|
| 15 | /** @var User */ |
||
| 16 | protected $user; |
||
| 17 | /** @var string */ |
||
| 18 | protected $name = "acl"; |
||
| 19 | |||
| 20 | public function __construct(User $user) { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $parameter |
||
|
1 ignored issue
–
show
|
|||
| 26 | * @throws \InvalidArgumentException |
||
| 27 | * @throws \OutOfBoundsException |
||
| 28 | */ |
||
| 29 | public function isAllowed($parameter = NULL): bool { |
||
| 37 | } |
||
| 38 | ?> |
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.