Skip to content

Commit 4fb88bf

Browse files
committed
[phpstorm-stubs] fix 'since' annotation for pcntl_waitid function signature
1 parent 987abd9 commit 4fb88bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pcntl/pcntl.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@ function pcntl_signal_get_handler(int $signal) {}
495495
*/
496496
function pcntl_unshare(int $flags): bool {}
497497

498-
#[PhpStormStubsElementAvailable(from: '8.4')]
498+
/**
499+
* @since 8.4
500+
*/
499501
function pcntl_waitid(int $idtype = P_ALL, ?int $id = null, &$info = [], int $flags = WEXITED, #[PhpStormStubsElementAvailable(from: '8.5')] &$resource_usage = []): bool {}
500502
/**
501503
* @since 8.4

0 commit comments

Comments
 (0)