1 | <?php |
||
28 | class PP2 implements GrammarInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var LexerInterface |
||
32 | */ |
||
33 | private $lexer; |
||
34 | |||
35 | /** |
||
36 | * @var PP2 |
||
37 | */ |
||
38 | private $parser; |
||
39 | |||
40 | /** |
||
41 | * Reader constructor. |
||
42 | */ |
||
43 | public function __construct() |
||
48 | |||
49 | /** |
||
50 | * @param Readable $input |
||
51 | * @return GrammarInterface |
||
52 | * @throws \Railt\Io\Exception\ExternalFileException |
||
53 | * @throws \Railt\Io\Exception\NotReadableException |
||
54 | */ |
||
55 | public function add(Readable $input): GrammarInterface |
||
64 | |||
65 | /** |
||
66 | * @param Readable $input |
||
67 | * @return \Traversable |
||
68 | * @throws \Railt\Io\Exception\NotReadableException |
||
69 | * @throws \Railt\Io\Exception\ExternalFileException |
||
70 | */ |
||
71 | private function lex(Readable $input): \Traversable |
||
93 | |||
94 | /** |
||
95 | * @param Readable $from |
||
96 | * @param TokenInterface $token |
||
97 | * @return Readable |
||
98 | * @throws \Railt\Io\Exception\NotReadableException |
||
99 | * @throws \Railt\Io\Exception\ExternalFileException |
||
100 | */ |
||
101 | private function include(Readable $from, TokenInterface $token): Readable |
||
116 | |||
117 | /** |
||
118 | * @return Result |
||
119 | */ |
||
120 | public function make(): Result |
||
124 | } |
||
125 |
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..