| 1 | <?php |
||
| 24 | final class StateParameterChecker implements ParameterChecker |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var bool |
||
| 28 | */ |
||
| 29 | private $stateParameterEnforced = false; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * StateParameterChecker constructor. |
||
| 33 | * |
||
| 34 | * @param bool $stateParameterEnforced |
||
| 35 | */ |
||
| 36 | public function __construct(bool $stateParameterEnforced) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function process(Authorization $authorization, callable $next): Authorization |
||
| 59 | } |
||
| 60 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: