| 1 | <?php |
||
| 19 | abstract class ResourcePresenter extends Presenter implements LoggerAwareInterface |
||
| 20 | { |
||
| 21 | use LoggerAwareTrait; |
||
| 22 | use Psr7Trait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var callable[] |
||
| 26 | */ |
||
| 27 | public $onAuthorized; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var ResourceServer |
||
| 31 | * @inject |
||
| 32 | */ |
||
| 33 | public $resourceServer; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param mixed $element |
||
| 37 | * @throws AbortException |
||
| 38 | */ |
||
| 39 | final public function checkRequirements($element) |
||
| 64 | } |
||
| 65 |
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: