Skip to content

Commit

Permalink
fix: BaseService getSharedInstance should properly cache null
Browse files Browse the repository at this point in the history
  • Loading branch information
najdanovicivan committed Mar 7, 2024
1 parent fd28a3f commit 9417a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Config/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ protected static function getSharedInstance(string $key, ...$params)
return static::$mocks[$key];
}

if (! isset(static::$instances[$key])) {
if (! array_key_exists($key, static::$instances)) {
// Make sure $getShared is false
$params[] = false;

Expand Down

0 comments on commit 9417a30

Please sign in to comment.