Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function exec(Readable $schema): RuleInterface |
||
45 | { |
||
46 | try { |
||
47 | return $this->parser->parse($schema); |
||
48 | |||
49 | } catch (ExternalFileException $e) { |
||
50 | $exception = new SyntaxException($e->getMessage()); |
||
51 | $exception->throwsIn($schema, $e->getLine(), $e->getColumn()); |
||
52 | |||
53 | throw $exception; |
||
54 | |||
55 | } catch (\Throwable $e) { |
||
56 | throw new InternalErrorException($e->getMessage()); |
||
57 | } |
||
58 | } |
||
59 | } |
||
60 |
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..