From 1e08097a17471adb64afa15fb624692c72f91e8d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 1 Jun 2020 16:05:13 +0200 Subject: [PATCH] Fix phpstan warning --- src/Composer/Autoload/AutoloadGenerator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 9ef442ba1..4dee65417 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -341,6 +341,7 @@ EOF; } $filesystem->filePutContentsIfModified($targetDir.'/autoload_static.php', $this->getStaticFile($suffix, $targetDir, $vendorPath, $basePath, $staticPhpVersion)); $checkPlatform = $config->get('platform-check') && $this->ignorePlatformReqs !== true; + $platformCheckContent = null; if ($checkPlatform) { $platformCheckContent = $this->getPlatformCheck($packageMap, $this->ignorePlatformReqs ?: array()); if (null === $platformCheckContent) {