Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
62 | public function getHashForMethodCall($object, string $method, array $args = []): string |
||
63 | { |
||
64 | $classname = get_class($object); |
||
65 | $keyObj = [ |
||
66 | 'class' => $classname, |
||
67 | 'method' => $method, |
||
68 | 'args' => $args, |
||
69 | ]; |
||
70 | $hash = sha1(json_encode($keyObj)); |
||
71 | return $hash; |
||
72 | } |
||
73 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..