From 269fe1fa57e37c6fc579113e394096bbb6d210f6 Mon Sep 17 00:00:00 2001 From: Shlee Date: Fri, 13 Feb 2026 17:08:04 +1030 Subject: [PATCH] Update Registry.php --- src/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Registry.php b/src/Registry.php index d15b3e4..fc21278 100644 --- a/src/Registry.php +++ b/src/Registry.php @@ -40,7 +40,7 @@ public function addAuxDataType(ExtensionInterface $extension, ?string $alias = n { $type = $extension->getAuxDataType(); if (array_key_exists($type, $this->auxDataTypes)) { - if (!$this->auxDataTypes[$type] instanceof $extension) { + if (!$extension instanceof $this->auxDataTypes[$type]) { throw new ExtensionException('Extension already registered'); } }