From 98108d67962434e736254d6ff24442c1f13c3594 Mon Sep 17 00:00:00 2001 From: Mathias Elle Date: Wed, 21 Jan 2026 08:45:50 +0100 Subject: [PATCH] fix: remove deprecated environment retrieval method --- src/Console/Command/System/CheckCommand.php | 14 -------------- 1 file changed, 14 deletions(-) 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; } }