1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace DMT\Insolvency\Model; |
||
4 | |||
5 | use DMT\Insolvency\Client; |
||
6 | use JMS\Serializer\Annotation as JMS; |
||
7 | |||
8 | /** |
||
9 | * Class PublicatieReference |
||
10 | * |
||
11 | * @JMS\XmlNamespace("http://www.rechtspraak.nl/namespaces/cir01") |
||
12 | * @JMS\XmlRoot("publicatieKenmerk", namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
||
0 ignored issues
–
show
|
|||
13 | */ |
||
0 ignored issues
–
show
|
|||
14 | class PublicatieReference implements ConstructWithClientInterface |
||
15 | { |
||
16 | use LazyLoadingPropertyTrait; |
||
17 | |||
18 | /** |
||
0 ignored issues
–
show
|
|||
19 | * @JMS\Type("string") |
||
20 | * @JMS\XmlValue() |
||
21 | * |
||
22 | * @var string $publicatieKenmerk |
||
23 | */ |
||
24 | public $publicatieKenmerk; |
||
25 | |||
26 | /** |
||
0 ignored issues
–
show
|
|||
27 | * @JMS\ReadOnlyProperty() |
||
28 | * |
||
29 | * @var Insolvente $insolvente |
||
30 | */ |
||
31 | private $insolvente; |
||
0 ignored issues
–
show
|
|||
32 | |||
33 | 5 | public function __construct(Client $client) |
|
0 ignored issues
–
show
|
|||
34 | { |
||
35 | $this->insolvente = function () use ($client) { |
||
0 ignored issues
–
show
It seems like
function(...) { /* ... */ } of type callable is incompatible with the declared type DMT\Insolvency\Model\Insolvente of property $insolvente .
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.. ![]() |
|||
36 | 5 | return $client->getCase($this->publicatieKenmerk, true); |
|
37 | }; |
||
38 | 5 | } |
|
39 | |||
40 | |||
41 | } |
||
42 |