diff --git a/src/Config/Magento/System.php b/src/Config/Magento/System.php
index 71770dc359..56555d4af0 100644
--- a/src/Config/Magento/System.php
+++ b/src/Config/Magento/System.php
@@ -50,7 +50,7 @@ public function get(string $key): ?string
$magentoShell = $this->shellFactory->create(ShellFactory::STRATEGY_MAGENTO_SHELL);
$process = $magentoShell->execute('config:show', [$key]);
- return $process->getOutput() ?? null;
+ return $process->getOutput();
} catch (\Exception $exception) {
return null;
}
diff --git a/src/Service/Validator.php b/src/Service/Validator.php
index 1511a985de..dc53b88e59 100644
--- a/src/Service/Validator.php
+++ b/src/Service/Validator.php
@@ -197,6 +197,7 @@ public function validateService(string $serviceName, string $version): string
private function getSupportedVersions(): array
{
if (null === $this->supportedVersionList) {
+ $this->supportedVersionList = [];
foreach (self::MAGENTO_SUPPORTED_SERVICE_VERSIONS as $serviceName => $magentoVersions) {
foreach ($magentoVersions as $magentoConstrain => $serviceConstraint) {
if (Semver::satisfies($this->magentoVersion->getVersion(), $magentoConstrain)) {
diff --git a/tests/static/phpmd-ruleset.xml b/tests/static/phpmd-ruleset.xml
index 0eb30e2576..667f9100bc 100644
--- a/tests/static/phpmd-ruleset.xml
+++ b/tests/static/phpmd-ruleset.xml
@@ -24,8 +24,8 @@
-
-
+
diff --git a/tests/static/phpstan.neon b/tests/static/phpstan.neon
index 3720c6bf89..edbd418fe1 100644
--- a/tests/static/phpstan.neon
+++ b/tests/static/phpstan.neon
@@ -35,3 +35,9 @@ parameters:
path: ../../src/Service/Validator.php
- message: '#Expression on left side of \?\? is not nullable#'
path: ../../src/Util/UrlManager.php
+ - message: '#Method Magento\\MagentoCloud\\App\\Container::createComposerInstance\(\) should return Composer\\Composer but returns Composer\\PartialComposer\.#'
+ path: ../../src/App/Container.php
+ - message: '#Left side of && is always true\.#'
+ path: ../../src/Service/EolValidator.php
+ - message: '#Variable \$gitIgnore on left side of \?\? always exists and is not nullable\.#'
+ path: ../../src/Command/Dev/UpdateComposer/ClearModuleRequirements.php