diff --git a/src/SDK/Registry.php b/src/SDK/Registry.php index 4991a7d0a..121faeaea 100644 --- a/src/SDK/Registry.php +++ b/src/SDK/Registry.php @@ -32,8 +32,7 @@ class Registry public static function maybeInitFromComposerExtra(): void { - $shouldInit = Sdk::useJsonRegistry(); - if ($shouldInit === false || self::$initialized) { + if (self::$initialized || Sdk::useJsonRegistry()) { return; } $file = dirname(__DIR__, 2) . '/vendor/composer/' . ComposerRegistry::FILENAME;