Skip to content

Commit 6124c55

Browse files
dantleechlocalheinz
authored andcommitted
gh-620: Explicitly include InstalledVersions.php and installed.php in PHAR
The autoloadmap includes a mapping `Composer\InstalledVersions` but as of explicitly including `src` this file is no longer included. This commit explicitly adds both `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` to ensure that the previous behavior is preserved and WARNINGS are not issued when other packages use `InstalledVersions::getVersion(// ...)`.
1 parent 0e91321 commit 6124c55

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
For a full diff see [`2.16.0...main`][2.16.0...main].
1010

11+
### Fixed
12+
13+
- Explicitly included `vendor/composer/installed.php` and `vendor/composer/InstalledVersions.php` when building PHAR ([#621]), by [@dantleech]
14+
1115
## [`2.16.0`][2.16.0]
1216

1317
For a full diff see [`2.15.1...2.16.0`][2.15.1...2.16.0].
@@ -360,6 +364,7 @@ For a full diff see [`7afa59c...1.0.0`][7afa59c...1.0.0].
360364
[#598]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/598
361365
[#604]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/604
362366

367+
[@dantleech]: https://github.com/dantleech
363368
[@HypeMC]: https://github.com/HypeMC
364369
[@localheinz]: https://github.com/localheinz
365370
[@mvorisek]: https://github.com/mvorisek

box.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"src/"
1010
],
1111
"files": [
12-
"manifest.xml"
12+
"manifest.xml",
13+
"vendor/composer/installed.php",
14+
"vendor/composer/InstalledVersions.php"
1315
],
1416
"git": "git",
1517
"main": "phar/phpunit-slow-test-detector.php",

0 commit comments

Comments
 (0)