diff --git a/ChangeLog-8.5.md b/ChangeLog-8.5.md
index f8522f73cf3..9617e97c2d6 100644
--- a/ChangeLog-8.5.md
+++ b/ChangeLog-8.5.md
@@ -2,6 +2,12 @@
All notable changes of the PHPUnit 8.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
+## [8.5.35] - 2023-MM-DD
+
+### Added
+
+* [#5577](https://github.com/sebastianbergmann/phpunit/issues/5577): `--composer-lock` CLI option for PHAR binary that displays the `composer.lock` used to build the PHAR
+
## [8.5.34] - 2023-09-19
### Changed
@@ -274,6 +280,7 @@ All notable changes of the PHPUnit 8.5 release series are documented in this fil
* [#3967](https://github.com/sebastianbergmann/phpunit/issues/3967): Cannot double interface that extends interface that extends `\Throwable`
* [#3968](https://github.com/sebastianbergmann/phpunit/pull/3968): Test class run in a separate PHP process are passing when `exit` called inside
+[8.5.35]: https://github.com/sebastianbergmann/phpunit/compare/8.5.34...8.5
[8.5.34]: https://github.com/sebastianbergmann/phpunit/compare/8.5.33...8.5.34
[8.5.33]: https://github.com/sebastianbergmann/phpunit/compare/8.5.32...8.5.33
[8.5.32]: https://github.com/sebastianbergmann/phpunit/compare/8.5.31...8.5.32
diff --git a/build.xml b/build.xml
index b15c66c25e8..c87cf2c5fd1 100644
--- a/build.xml
+++ b/build.xml
@@ -154,6 +154,8 @@
+
+
diff --git a/build/templates/binary-phar-autoload.php.in b/build/templates/binary-phar-autoload.php.in
index 1d0c3728c13..4c0b2abc3c0 100644
--- a/build/templates/binary-phar-autoload.php.in
+++ b/build/templates/binary-phar-autoload.php.in
@@ -52,13 +52,15 @@ if (__FILE__ === realpath($_SERVER['SCRIPT_NAME'])) {
$execute = false;
}
-$options = getopt('', array('prepend:', 'manifest', 'sbom'));
+$options = getopt('', array('prepend:', 'composer-lock', 'manifest', 'sbom'));
if (isset($options['prepend'])) {
require $options['prepend'];
}
-if (isset($options['manifest'])) {
+if (isset($options['composer-lock'])) {
+ $printComposerLock = true;
+} elseif (isset($options['manifest'])) {
$printManifest = true;
} elseif (isset($options['sbom'])) {
$printSbom = true;
@@ -92,6 +94,12 @@ foreach ([___CLASSLIST___] as $file) {
}
if ($execute) {
+ if (isset($printComposerLock)) {
+ print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/composer.lock');
+
+ exit;
+ }
+
if (isset($printManifest)) {
print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/manifest.txt');