Skip to content

Commit c2fa112

Browse files
committed
using more precise type for payloads.
1 parent 25d1623 commit c2fa112

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ext/sockets/sockets.stub.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,7 @@ function socket_wsaprotocol_info_release(string $info_id): bool {}
21852185
public int $ethProtocol;
21862186
public string $macSrc;
21872187
public string $macDst;
2188-
public ?object $payload;
2188+
public ?Packet $payload;
21892189
}
21902190

21912191
final readonly class TcpPacket extends Packet
@@ -2208,7 +2208,7 @@ function socket_wsaprotocol_info_release(string $info_id): bool {}
22082208
{
22092209
public string $srcAddr;
22102210
public string $dstAddr;
2211-
public ?object $payload;
2211+
public ?Packet $payload;
22122212
}
22132213

22142214
final readonly class Ipv6Packet extends Packet

ext/sockets/sockets_arginfo.h

+5-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)