The strict comparison !== seems to always evaluate to true as the types of $dependencyIndex (integer) and 'Ray\\Di\\InjectorInterface-' . \Ray\Di\Name::ANY (string) can never be identical. Maybe you want to use a loose comparison != instead?
Loading history...
38
if ($isNotInjector) {
39
$this->write($dependencyIndex);
40
}
41
}
42
}
43
44
private function write(string $dependencyIndex): void
45
{
46
if ($dependencyIndex === 'Ray\Aop\MethodInvocation-') {
The variable $interface does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
The variable $name does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
51
$instance = (new ScriptInjector($this->scriptDir))->getInstance($interface, $name);