Due to PHP Bug #53727, is_subclass_of might return inconsistent results on some PHP versions if \Railt\Compiler\Reader\GrammarInterface::class can be an interface. If so, you could instead use ReflectionClass::implementsInterface.
Loading history...
33
34
$this->grammar = new $language;
35
}
36
37
/**
38
* @param Readable $input
39
* @return GrammarInterface
40
*/
41
public function add(Readable $input): GrammarInterface