Check for empty() in has() Method

This commit is contained in:
2025-10-25 11:39:24 -04:00
parent 83dfd7ed72
commit ee2ddf6e38

View File

@@ -15,7 +15,7 @@ trait AwareTrait
final public function has(string $key): bool
{
return array_key_exists($key, $this->aware);
return !empty($this->aware[$key]);
}
final protected function set(string $key, mixed $value): mixed