1
0
Fork 0

Make sure InstalledVersions ships to project with docblocks

pull/9935/head
Jordi Boggiano 2021-06-02 15:19:09 +02:00
parent 6d1d307f7b
commit aeb2c8d6e3
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 1 deletions

View File

@ -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();