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 | * @var ArgumentsPattern |
||
30 | */ |
||
31 | private $outputType = self::OUTPUT_FULL; |
||
32 | |||
33 | |||
34 | /** |
||
35 | * @return $this |
||
36 | */ |
||
37 | 3 | public function outputFull() { |
|
38 | 3 | $this->outputType = self::OUTPUT_FULL; |
|
|
|||
39 | 3 | return $this; |
|
40 | } |
||
41 | |||
42 | |||
43 | /** |
||
44 | * @return $this |
||
45 | */ |
||
46 | 3 | public function outputArguments() { |
|
47 | 3 | $this->outputType = self::OUTPUT_ARGUMENTS; |
|
48 | 3 | return $this; |
|
49 | } |
||
50 | |||
51 | |||
52 | /** |
||
53 | * @param Query $query |
||
54 | * @return $this |
||
55 | */ |
||
56 | 2 | public function withName(Query $query) { |
|
60 | |||
61 | |||
62 | /** |
||
63 | * @param ArgumentsPattern $pattern |
||
64 | * @return $this |
||
65 | */ |
||
66 | 3 | public function withParameters(ArgumentsPattern $pattern) { |
|
70 | |||
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | 9 | 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..