Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  Make more nullable types explicit
  Add more explicit nullable types for default null values
  • Loading branch information
derrabus committed Mar 19, 2024
2 parents 54ca13e + 3065d1c commit a014167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/DeprecationErrorHandler/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public function testBaselineFileWriteError()
$this->expectException(\ErrorException::class);
$this->expectExceptionMessageMatches('/[Ff]ailed to open stream: Permission denied/');

set_error_handler(static function (int $errno, string $errstr, string $errfile = null, int $errline = null): bool {
set_error_handler(static function (int $errno, string $errstr, ?string $errfile = null, ?int $errline = null): bool {
if ($errno & (E_WARNING | E_WARNING)) {
throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);
}
Expand Down

0 comments on commit a014167

Please sign in to comment.