Skip to content

Commit b553541

Browse files
committed
poll: use generic notation for some return arrays
1 parent 8bd0b4a commit b553541

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ext/standard/io_poll.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ enum Backend
1717
case EventPorts;
1818
case WSAPoll;
1919

20+
/** @return list<Backend> */
2021
static public function getAvailableBackends(): array {}
2122

2223
public function isAvailable(): bool {}
@@ -45,8 +46,10 @@ private final function __construct() {}
4546

4647
public function getHandle(): Handle {}
4748

49+
/** @return list<Event> */
4850
public function getWatchedEvents(): array {}
4951

52+
/** @return list<Event> */
5053
public function getTriggeredEvents(): array {}
5154

5255
public function getData(): mixed {}
@@ -70,6 +73,7 @@ public function __construct(Backend $backend = Backend::Auto) {}
7073

7174
public function add(Handle $handle, array $events, mixed $data = null): Watcher {}
7275

76+
/** @return list<Watcher> */
7377
public function wait(int $timeoutSeconds = -1, int $timeoutMicroseconds = 0, int $maxEvents = -1): array {}
7478

7579
public function getBackend(): Backend {}

ext/standard/io_poll_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)