We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be8ccb4 commit 3ba6fc9Copy full SHA for 3ba6fc9
1 file changed
src/Internal/Repository/ArrayRepository.php
@@ -58,7 +58,7 @@ public function add(Identifiable $entry, bool $overwrite = false): void
58
{
59
$name = $entry->getID();
60
61
- if ($overwrite === false && isset($this->prototypes[$name])) {
+ if ($overwrite === false && isset($this->entries[$name])) {
62
throw new \OutOfBoundsException(\sprintf(self::ERROR_ALREADY_EXISTS, $name));
63
}
64
0 commit comments