Skip to content

Commit eff1416

Browse files
Merge branch '12.5' into 13.0
* 12.5: Closes #6503 Remove unused import
2 parents 193749f + 74e2cbd commit eff1416

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

ChangeLog-13.0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 13.0 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [13.0.2] - 2026-MM-DD
6+
7+
### Fixed
8+
9+
* [#6503](https://github.com/sebastianbergmann/phpunit/issues/6503): Temporary file used by `SourceMapper` may be deleted prematurely when multiple PHPUnit processes run in parallel
10+
511
## [13.0.1] - 2026-02-08
612

713
### Fixed
@@ -37,5 +43,6 @@ All notable changes of the PHPUnit 13.0 release series are documented in this fi
3743
* [#6285](https://github.com/sebastianbergmann/phpunit/issues/6285): `#[RunClassInSeparateProcess]` attribute
3844
* [#6356](https://github.com/sebastianbergmann/phpunit/issues/6356): Support for version constraint string argument without explicit version comparison operator
3945

46+
[13.0.2]: https://github.com/sebastianbergmann/phpunit/compare/13.0.1...13.0
4047
[13.0.1]: https://github.com/sebastianbergmann/phpunit/compare/13.0.0...13.0.1
4148
[13.0.0]: https://github.com/sebastianbergmann/phpunit/compare/12.5...13.0.0

src/Framework/TestRunner/SeparateProcessTestRunner.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use function defined;
1414
use function get_include_path;
1515
use function hrtime;
16-
use function register_shutdown_function;
1716
use function serialize;
1817
use function sys_get_temp_dir;
1918
use function tempnam;
@@ -168,13 +167,6 @@ private function sourceMapFileForChildProcess(): string
168167
// @codeCoverageIgnoreEnd
169168
}
170169

171-
register_shutdown_function(static function () use ($path): void
172-
{
173-
// @codeCoverageIgnoreStart
174-
@unlink($path);
175-
// @codeCoverageIgnoreEnd
176-
});
177-
178170
self::$sourceMapFile = $path;
179171

180172
return self::$sourceMapFile;

0 commit comments

Comments
 (0)