Skip to content

Commit

Permalink
fix: add nullable params (PHP 8.4 compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Dec 7, 2024
1 parent f147845 commit 2ba534e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Client/TrapHandle/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function dump(mixed $var, string|int|null $label = null, int $dept
* @return null|callable(mixed, string|null, int): mixed
* @psalm-suppress MixedInferredReturnType, MixedPropertyTypeCoercion, MismatchingDocblockReturnType
*/
public static function setHandler(callable $callable = null): ?\Closure
public static function setHandler(?callable $callable = null): ?\Closure
{
return ([$callable, self::$handler] = [self::$handler, $callable === null ? null : $callable(...)])[0];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Client/TrapHandle/StaticState.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ private function __construct(
* @param StackTraceWithObjects|null $stackTraceWithObjects
*/
public static function new(
array $stackTrace = null,
array $stackTraceWithObjects = null,
?array $stackTrace = null,
?array $stackTraceWithObjects = null,
): self {
$new = new self(
$stackTrace ?? StackTrace::stackTrace(provideObjects: false),
Expand Down
2 changes: 1 addition & 1 deletion src/Sender/RemoteSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class RemoteSender extends SocketSender
private readonly string $clientVersion;

public function __construct(
string $uuid = null,
?string $uuid = null,
string $host = '127.0.0.1',
int $port = 9912,
) {
Expand Down

0 comments on commit 2ba534e

Please sign in to comment.