1 | <?php |
||
23 | class PP2 implements GrammarInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var PP2 |
||
27 | */ |
||
28 | private $parser; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $ast = []; |
||
34 | |||
35 | /** |
||
36 | * PP2 constructor. |
||
37 | * @throws \InvalidArgumentException |
||
38 | */ |
||
39 | public function __construct() |
||
43 | |||
44 | /** |
||
45 | * @param Readable $grammar |
||
46 | * @return GrammarInterface |
||
47 | * @throws \LogicException |
||
48 | * @throws \Railt\Io\Exception\ExternalFileException |
||
49 | * @throws \Railt\Parser\Exception\UnrecognizedRuleException |
||
50 | */ |
||
51 | public function add(Readable $grammar): GrammarInterface |
||
73 | |||
74 | /** |
||
75 | * @param Readable $grammar |
||
76 | * @return RuleInterface |
||
77 | * @throws \LogicException |
||
78 | * @throws \Railt\Io\Exception\ExternalFileException |
||
79 | * @throws \Railt\Parser\Exception\UnrecognizedRuleException |
||
80 | */ |
||
81 | private function parse(Readable $grammar): RuleInterface |
||
85 | |||
86 | /** |
||
87 | * @return Result |
||
88 | */ |
||
89 | public function make(): Result |
||
96 | } |
||
97 |
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..