Skip to content

Commit

Permalink
Suppress deprecation (using trigger_error() with E_USER_ERROR is depr…
Browse files Browse the repository at this point in the history
…ecated in PHP 8.4)
  • Loading branch information
sebastianbergmann committed Aug 10, 2024
1 parent 374e98c commit d8e0be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/Framework/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ public function testErrorCanBeExpected(): void
$this->expectErrorMessage('foo');
$this->expectErrorMessageMatches('/foo/');

trigger_error('foo', E_USER_ERROR);
@trigger_error('foo', E_USER_ERROR);
}

/**
Expand Down

0 comments on commit d8e0be7

Please sign in to comment.