Skip to content

Commit 5856f94

Browse files
Merge branch '10.5' into 11.2
2 parents 80311dd + 2ca2024 commit 5856f94

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ChangeLog-11.2.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 11.2 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [11.2.3] - 2024-MM-DD
6+
7+
### Changed
8+
9+
* [#5871](https://github.com/sebastianbergmann/phpunit/pull/5871): Do not collect unnecessary information using `debug_backtrace()`
10+
511
## [11.2.2] - 2024-06-15
612

713
### Changed
@@ -31,6 +37,7 @@ All notable changes of the PHPUnit 11.2 release series are documented in this fi
3137

3238
* [#5800](https://github.com/sebastianbergmann/phpunit/issues/5800): Support for targeting traits with `#[CoversClass]` and `#[UsesClass]` attributes
3339

40+
[11.2.3]: https://github.com/sebastianbergmann/phpunit/compare/11.2.2...11.2
3441
[11.2.2]: https://github.com/sebastianbergmann/phpunit/compare/11.2.1...11.2.2
3542
[11.2.1]: https://github.com/sebastianbergmann/phpunit/compare/11.2.0...11.2.1
3643
[11.2.0]: https://github.com/sebastianbergmann/phpunit/compare/11.1.3...11.2.0

src/Event/Value/Test/TestMethodBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function fromTestCase(TestCase $testCase): TestMethod
4949
*/
5050
public static function fromCallStack(): TestMethod
5151
{
52-
foreach (debug_backtrace() as $frame) {
52+
foreach (debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS) as $frame) {
5353
if (isset($frame['object']) && $frame['object'] instanceof TestCase) {
5454
return $frame['object']->valueObjectForEvents();
5555
}

0 commit comments

Comments
 (0)