Skip to content

Commit d8e0be7

Browse files
Suppress deprecation (using trigger_error() with E_USER_ERROR is deprecated in PHP 8.4)
1 parent 374e98c commit d8e0be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/Framework/TestCaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ public function testErrorCanBeExpected(): void
12531253
$this->expectErrorMessage('foo');
12541254
$this->expectErrorMessageMatches('/foo/');
12551255

1256-
trigger_error('foo', E_USER_ERROR);
1256+
@trigger_error('foo', E_USER_ERROR);
12571257
}
12581258

12591259
/**

0 commit comments

Comments
 (0)