Change has to isSet
This commit is contained in:
@@ -21,7 +21,7 @@ final class Metadata implements MetadataInterface
|
||||
|
||||
public function get(string $key): mixed
|
||||
{
|
||||
if (!$this->has($key)) {
|
||||
if (!$this->isSet($key)) {
|
||||
throw new MissingKeyException($key);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ final class Metadata implements MetadataInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function has(string $key): bool
|
||||
public function isSet(string $key): bool
|
||||
{
|
||||
return array_key_exists($key, $this->metadata);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user