Skip to content

Commit e9eed8e

Browse files
authored
Fixed implicitly nullable params (#6616)
1 parent 6abd311 commit e9eed8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function recv(float $timeout = -1)
7272
/**
7373
* @param int $flags SWOOLE_WEBSOCKET_FLAG_FIN or SWOOLE_WEBSOCKET_FLAG_COMPRESS
7474
*/
75-
public function push(string $data, int $opcode = WEBSOCKET_OPCODE_TEXT, int $flags = null): bool
75+
public function push(string $data, int $opcode = WEBSOCKET_OPCODE_TEXT, ?int $flags = null): bool
7676
{
7777
return $this->client->push($data, $opcode, $flags);
7878
}

0 commit comments

Comments
 (0)