1 | <?php |
||
10 | class ReflectionMethod extends \ReflectionMethod |
||
11 | { |
||
12 | |||
13 | use ReflectionDocCommentTrait; |
||
14 | |||
15 | /** |
||
16 | * Gets declaring class. |
||
17 | * |
||
18 | * @return \Wingu\OctopusCore\Reflection\ReflectionClass |
||
19 | */ |
||
20 | 33 | public function getDeclaringClass() |
|
24 | |||
25 | /** |
||
26 | * Gets prototype. |
||
27 | * |
||
28 | * @return \Wingu\OctopusCore\Reflection\ReflectionMethod |
||
29 | */ |
||
30 | 3 | public function getPrototype() |
|
36 | |||
37 | /** |
||
38 | * Get the body of the method. |
||
39 | * |
||
40 | * @return string |
||
41 | * @throws \Wingu\OctopusCore\Reflection\Exceptions\RuntimeException If the method belongs to an internal class or is abstract. |
||
42 | */ |
||
43 | 27 | public function getBody() |
|
65 | |||
66 | /** |
||
67 | * Gets parameters. |
||
68 | * |
||
69 | * @return \Wingu\OctopusCore\Reflection\ReflectionParameter[] |
||
70 | */ |
||
71 | 6 | public function getParameters() |
|
82 | |||
83 | /** |
||
84 | * Gets extension info. |
||
85 | * |
||
86 | * @return \Wingu\OctopusCore\Reflection\ReflectionExtension |
||
87 | */ |
||
88 | 6 | public function getExtension() |
|
97 | } |
||
98 |
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: