7.4 compatibility

This commit is contained in:
Lorenzo Yario
2024-12-22 14:49:27 -06:00
committed by GitHub
parent 8cd4cae56e
commit 58c2f095dc

View File

@@ -16,7 +16,7 @@ class Context {
$this->definitions = $definitions;
}
public function get(string $name): mixed {
public function get(string $name){
if (!isset($this->definitions[$name])) {
throw new \RuntimeException("Could not find a dependency named $name");
}