It seems like new \Railt\AST\Parser() of type object<Railt\AST\Parser> is incompatible with the declared type object<Railt\Parser\ParserInterface> of property $parser.
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..
Loading history...
36
}
37
38
/**
39
* @param Readable $schema
40
* @return RuleInterface
41
* @throws SyntaxException
42
* @throws InternalErrorException
43
*/
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());
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..