get() Method Throws NotFoundException
This commit is contained in:
@@ -14,8 +14,11 @@ trait AwareTrait
|
||||
|
||||
final public function get(string $key): mixed
|
||||
{
|
||||
if ($this->has($key)) {
|
||||
return $this->aware[$key];
|
||||
}
|
||||
throw new NotFoundException;
|
||||
}
|
||||
|
||||
final public function has(string $key): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user