1 | <?php declare(strict_types=1); |
||
22 | class ParametersList implements ParametersListInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $number_of_parameters = 0; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $number_of_required_parameters = 0; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $variadic = false; |
||
38 | |||
39 | /** |
||
40 | * @var ParameterSpecInterface[] |
||
41 | */ |
||
42 | private $parameters; |
||
43 | |||
44 | /** |
||
45 | * @param ParameterSpecInterface[] ...$parameters |
||
46 | */ |
||
47 | 9 | public function __construct(ParameterSpecInterface ...$parameters) |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getNumberOfParameters(): int |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getNumberOfRequiredParameters(): int |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function isVariadic(): bool |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 1 | public function getParameters(): array |
|
87 | |||
88 | /** |
||
89 | * @param ParameterSpecInterface[] $parameters |
||
90 | * |
||
91 | * @return int |
||
92 | */ |
||
93 | 9 | protected function getNumberOfParametersFromArray(array $parameters): int |
|
97 | |||
98 | /** |
||
99 | * @param ParameterSpecInterface[] $parameters |
||
100 | * |
||
101 | * @return int |
||
102 | */ |
||
103 | 9 | protected function getNumberOfRequiredParametersFromArray(array $parameters): int |
|
117 | |||
118 | /** |
||
119 | * @param ParameterSpecInterface[] $parameters |
||
120 | * |
||
121 | * @return bool |
||
122 | */ |
||
123 | 9 | protected function getIsVariadicFromArray(array $parameters): bool |
|
133 | } |
||
134 |
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..