diff --git a/src/Console/Command/System/CheckCommand.php b/src/Console/Command/System/CheckCommand.php index 4f83df8..ff69833 100644 --- a/src/Console/Command/System/CheckCommand.php +++ b/src/Console/Command/System/CheckCommand.php @@ -763,20 +763,6 @@ private function getSystemEnvironmentValue(string $name): ?string } } - // Use Environment class if available (Magento 2.3+) - try { - $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); - $env = $objectManager->get(\Magento\Framework\App\Environment::class); - if (method_exists($env, 'getEnv')) { - $value = $env->getEnv($name); - if ($value !== false && $value !== null) { - return $value; - } - } - } catch (\Exception $e) { - // Continue with other methods - } - return null; } }