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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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");
}