Skip to content

Commit c8dc73c

Browse files
Merge branch '6.4' into 7.0
* 6.4: [PhpUnitBridge] Fix requiring bootstrap.php [Messenger] Prevent `StopWorkerOnSignalsListener::$signals` to be assigned to null in case `SIGTERM` constant doesn't exist
2 parents 7c629fd + a39ad72 commit c8dc73c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bin/simple-phpunit.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@
256256
if ('\\' === \DIRECTORY_SEPARATOR) {
257257
file_put_contents('composer.json', preg_replace('/^( {8})"phpunit-bridge": \{$/m', "$0\n$1 ".'"options": {"symlink": false},', file_get_contents('composer.json')));
258258
}
259-
$phpunitBridgeComposerJson = file_get_contents($path.'/composer.json');
260-
file_put_contents($path.'/composer.json', preg_replace('/^( {8})"files": .*/m', '', $phpunitBridgeComposerJson));
261259
} else {
262260
$passthruOrFail("$COMPOSER require --no-update symfony/phpunit-bridge \"*\"");
263261
}
@@ -267,9 +265,6 @@
267265
// --no-suggest is not in the list to keep compat with composer 1.0, which is shipped with Ubuntu 16.04LTS
268266
$exit = proc_close(proc_open("$q$COMPOSER install --no-dev --prefer-dist --no-progress $q", [], $p, getcwd()));
269267
putenv('COMPOSER_ROOT_VERSION'.(false !== $prevRoot ? '='.$prevRoot : ''));
270-
if (file_exists($path)) {
271-
file_put_contents($path.'/composer.json', $phpunitBridgeComposerJson);
272-
}
273268
if ($prevCacheDir) {
274269
putenv("COMPOSER_CACHE_DIR=$prevCacheDir");
275270
}

bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
return;
2626
}
2727

28+
if (isset($fileIdentifier)) {
29+
unset($GLOBALS['__composer_autoload_files'][$fileIdentifier]);
30+
}
31+
2832
// Enforce a consistent locale
2933
setlocale(\LC_ALL, 'C');
3034

0 commit comments

Comments
 (0)