From aeb2c8d6e348e4e9c9473d623df56bebef398a54 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 2 Jun 2021 15:19:09 +0200 Subject: [PATCH] Make sure InstalledVersions ships to project with docblocks --- src/Composer/Compiler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php index 380f13b3a..444f44584 100644 --- a/src/Composer/Compiler.php +++ b/src/Composer/Compiler.php @@ -86,14 +86,16 @@ class Compiler ->name('*.php') ->notName('Compiler.php') ->notName('ClassLoader.php') + ->notName('InstalledVersions.php') ->in(__DIR__.'/..') ->sort($finderSort) ; foreach ($finder as $file) { $this->addFile($phar, $file); } - // Add ClassLoader separately to make sure it retains the docblocks as it will get copied into projects + // Add runtime utilities separately to make sure they retains the docblocks as these will get copied into projects $this->addFile($phar, new \SplFileInfo(__DIR__ . '/Autoload/ClassLoader.php'), false); + $this->addFile($phar, new \SplFileInfo(__DIR__ . '/InstalledVersions.php'), false); // Add Composer resources $finder = new Finder();