1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace JMS\Serializer\EventDispatcher; |
||
6 | |||
7 | class PreSerializeEvent extends ObjectEvent |
||
8 | { |
||
9 | public function setType(string $typeName, array $params = []): void |
||
10 | { |
||
11 | $this->type = ['name' => $typeName, 'params' => $params]; |
||
0 ignored issues
–
show
|
|||
12 | } |
||
13 | } |
||
14 |
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..