File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,10 @@ public function configureInstaller()
270
270
271
271
public function lockPlatform ()
272
272
{
273
+ if (!$ this ->downloader ->isEnabled ()) {
274
+ return ; // "symfony/flex" not found in the root composer.json - don't create the symfony.lock file
275
+ }
276
+
273
277
$ this ->lock ->set ('php ' , [
274
278
'version ' => $ this ->config ->get ('platform ' )['php ' ] ?? (PHP_MAJOR_VERSION .'. ' .PHP_MINOR_VERSION ),
275
279
]);
@@ -678,7 +682,7 @@ private function updateAutoloadFile()
678
682
}
679
683
680
684
$ platform = preg_replace ('/[^-+.~_\w]/ ' , '' , $ platform );
681
- $ version = sprintf ('%d%02d%02d ' , ...explode ('. ' , $ platform .'.0 .0 ' ));
685
+ $ version = sprintf ('%d%02d00 ' , ...explode ('. ' , $ platform .'.0 ' ));
682
686
683
687
file_put_contents ($ autoloadFile , <<<EOPHP
684
688
<?php
You can’t perform that action at this time.
0 commit comments