Update 1.0.3, support PHP 8.4

This commit is contained in:
crazywhalecc
2025-03-10 10:17:16 +08:00
parent d7a05ac929
commit 56416d9b55
7 changed files with 5 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ class FrameFactory
return new Frame($payload, Opcode::BINARY, true, true);
}
public static function createCloseFrame(int $code = null, string $reason = null): Frame
public static function createCloseFrame(?int $code = null, ?string $reason = null): Frame
{
return new CloseFrame($code, $reason);
}