Skip to content

Commit 00a451c

Browse files
Merge branch '12.5' into 13.0
* 12.5: Closes #6521
2 parents 915a2e7 + 067553c commit 00a451c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
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.5] - 2026-MM-DD
6+
7+
### Fixed
8+
9+
* [#6521](https://github.com/sebastianbergmann/phpunit/issues/6521): Performance regression in PHPUnit 11.5.54, PHPUnit 12.5.13, and PHPUnit 13.0.4
10+
511
## [13.0.4] - 2026-02-18
612

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

71+
[13.0.5]: https://github.com/sebastianbergmann/phpunit/compare/13.0.4...13.0
6572
[13.0.4]: https://github.com/sebastianbergmann/phpunit/compare/13.0.3...13.0.4
6673
[13.0.3]: https://github.com/sebastianbergmann/phpunit/compare/13.0.2...13.0.3
6774
[13.0.2]: https://github.com/sebastianbergmann/phpunit/compare/13.0.1...13.0.2

src/Runner/ErrorHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ final class ErrorHandler
6060
private static ?self $instance = null;
6161
private ?Baseline $baseline = null;
6262
private ExcludeList $excludeList;
63-
private SourceFilter $sourceFilter;
6463
private bool $enabled = false;
6564
private ?int $originalErrorReportingLevel = null;
6665
private readonly bool $identifyIssueTrigger;
@@ -101,7 +100,6 @@ public static function instance(): self
101100
private function __construct(bool $identifyIssueTrigger)
102101
{
103102
$this->excludeList = new ExcludeList;
104-
$this->sourceFilter = SourceFilter::instance();
105103
$this->identifyIssueTrigger = $identifyIssueTrigger;
106104
}
107105

@@ -376,7 +374,7 @@ private function categorizeFile(string $file, TestMethod $test): Code
376374
return Code::Test;
377375
}
378376

379-
if ($this->sourceFilter->includes($file)) {
377+
if (SourceFilter::instance()->includes($file)) {
380378
return Code::FirstParty;
381379
}
382380

0 commit comments

Comments
 (0)