1 | <?php |
||
12 | class FunctionCallPattern implements PatternInterface { |
||
13 | |||
14 | const OUTPUT_FULL = 1; |
||
15 | |||
16 | const OUTPUT_ARGUMENTS = 2; |
||
17 | |||
18 | /** |
||
19 | * @var Query|null |
||
20 | */ |
||
21 | private $nameQuery; |
||
22 | |||
23 | /** |
||
24 | * @var ArgumentsPattern |
||
25 | */ |
||
26 | private $parametersPattern; |
||
27 | |||
28 | /** |
||
29 | 3 | * @var ArgumentsPattern |
|
30 | 3 | */ |
|
31 | 3 | private $outputType = self::OUTPUT_FULL; |
|
32 | |||
33 | |||
34 | /** |
||
35 | * @return $this |
||
36 | */ |
||
37 | public function outputFull() { |
||
41 | 3 | ||
42 | |||
43 | /** |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function outputArguments() { |
||
50 | 9 | ||
51 | 9 | ||
52 | 3 | /** |
|
53 | * @param Query $query |
||
54 | * @return $this |
||
55 | 9 | */ |
|
56 | 9 | public function withName(Query $query) { |
|
60 | |||
61 | |||
62 | 9 | /** |
|
63 | 9 | * @param ArgumentsPattern $pattern |
|
64 | 9 | * @return $this |
|
65 | 9 | */ |
|
66 | 6 | public function withParameters(ArgumentsPattern $pattern) { |
|
70 | |||
71 | |||
72 | 9 | /** |
|
73 | 3 | * @inheritdoc |
|
74 | 3 | */ |
|
75 | 3 | public function __invoke(QuerySequence $querySequence) { |
|
112 | |||
113 | } |
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..