1 | <?php |
||
17 | class AuraInputInterceptor implements MethodInterceptor |
||
18 | { |
||
19 | /** |
||
20 | * @var Reader |
||
21 | */ |
||
22 | protected $reader; |
||
23 | |||
24 | /** |
||
25 | * @var FailureHandlerInterface |
||
26 | */ |
||
27 | protected $failureHandler; |
||
28 | |||
29 | /** |
||
30 | * @param Reader $reader |
||
31 | * @param FailureHandlerInterface $handler |
||
32 | */ |
||
33 | 13 | public function __construct(Reader $reader, FailureHandlerInterface $handler) |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | * |
||
42 | * @throws InvalidArgumentException |
||
43 | */ |
||
44 | 12 | public function invoke(MethodInvocation $invocation) |
|
60 | |||
61 | /** |
||
62 | * @param array $submit |
||
63 | * @param AbstractForm $form |
||
64 | * |
||
65 | * @throws Exception\CsrfViolationException |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | 7 | public function isValid(array $submit, AbstractForm $form) |
|
75 | |||
76 | /** |
||
77 | * Return arguments as named arguments. |
||
78 | * |
||
79 | * @param MethodInvocation $invocation |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | 7 | private function getNamedArguments(MethodInvocation $invocation) |
|
99 | |||
100 | /** |
||
101 | * Return form property |
||
102 | * |
||
103 | * @param AbstractValidation $formValidation |
||
104 | * @param object $object |
||
105 | * |
||
106 | * @return mixed |
||
107 | */ |
||
108 | 11 | private function getFormProperty(AbstractValidation $formValidation, $object) |
|
122 | } |
||
123 |
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: