Skip to content

Commit 52abcbe

Browse files
minor #36892 [Debug] Skip test that would trigger a fatal error on php 8 (derrabus)
This PR was merged into the 3.4 branch. Discussion ---------- [Debug] Skip test that would trigger a fatal error on php 8 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #36872 | License | MIT | Doc PR | N/A This PR skips a test of `DebugClassLoader`. The test uses incompatible method signatures in class inheritance to provoke a php warning that should be handled by the debug class loader. On php 8 however, this error is not recoverable anymore, so the tested logic will be obsolete there. Commits ------- 573d0dd [Debug] Skip test that would trigger a fatal error on php 8.
2 parents dd902d9 + 573d0dd commit 52abcbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public function testUnsilencing()
9797
$this->assertStringMatchesFormat('%aParse error%a', $output);
9898
}
9999

100+
/**
101+
* @requires PHP < 8.0
102+
*/
100103
public function testStacking()
101104
{
102105
// the ContextErrorException must not be loaded to test the workaround

0 commit comments

Comments
 (0)