forked from GithubBackups/vichan
7.4 compatibility
This commit is contained in:
parent
8cd4cae56e
commit
58c2f095dc
@ -16,7 +16,7 @@ class Context {
|
|||||||
$this->definitions = $definitions;
|
$this->definitions = $definitions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get(string $name): mixed {
|
public function get(string $name){
|
||||||
if (!isset($this->definitions[$name])) {
|
if (!isset($this->definitions[$name])) {
|
||||||
throw new \RuntimeException("Could not find a dependency named $name");
|
throw new \RuntimeException("Could not find a dependency named $name");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user