mirror of
https://github.com/crazywhalecc/choir-psr-http.git
synced 2026-07-02 14:25:43 +08:00
Update 1.0.3, support PHP 8.4
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user