diff --git a/src/components/di/firehub.Container.php b/src/components/di/firehub.Container.php index 6d1184d8d..56ef77ba8 100644 --- a/src/components/di/firehub.Container.php +++ b/src/components/di/firehub.Container.php @@ -743,7 +743,7 @@ private function setRecordInstance (string $abstract, array $parameters):void { ($object = DataIs::null($object = $record['concrete']($this, ...$parameters)) ? throw new Error("Container is implementing null for $abstract!") : $object) - ) ? $object + ) ? $object : throw new Error("Container cannot resolve: $abstract, because it is binding to a different class: ".$object::class), 'parameters' => $parameters ]);