Check for empty() in has() Method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user