1 | <?php |
||
26 | class ParsingResult |
||
27 | { |
||
28 | /** |
||
29 | * @var PragmaParser |
||
30 | */ |
||
31 | private $pragma; |
||
32 | |||
33 | /** |
||
34 | * @var TokenParser |
||
35 | */ |
||
36 | private $tokens; |
||
37 | |||
38 | /** |
||
39 | * @var ProductionParser |
||
40 | */ |
||
41 | private $productions; |
||
42 | |||
43 | /** |
||
44 | * @var Stateless |
||
45 | */ |
||
46 | private $lexer; |
||
47 | |||
48 | /** |
||
49 | * @var ParserInterface|ParserRuntime |
||
50 | */ |
||
51 | private $parser; |
||
52 | |||
53 | /** |
||
54 | * Result constructor. |
||
55 | * @param PragmaParser $pragma |
||
56 | * @param TokenParser $tokens |
||
57 | * @param ProductionParser $productions |
||
58 | */ |
||
59 | public function __construct(PragmaParser $pragma, TokenParser $tokens, ProductionParser $productions) |
||
65 | |||
66 | /** |
||
67 | * @return ParserInterface|Parser |
||
68 | */ |
||
69 | public function getParser(): ParserInterface |
||
77 | |||
78 | /** |
||
79 | * @return Stateless |
||
80 | */ |
||
81 | public function getLexer(): Stateless |
||
97 | |||
98 | /** |
||
99 | * @return array |
||
100 | */ |
||
101 | public function getRules(): array |
||
111 | |||
112 | /** |
||
113 | * @return array|Buildable[] |
||
114 | */ |
||
115 | public function getBuilders(): iterable |
||
121 | } |
||
122 |
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..