Skip to content

Commit a490a2d

Browse files
committed
update return type for getProcessState()
1 parent 383070a commit a490a2d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

system/CLI/SignalTrait.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,20 @@ protected function getSignals(): array
352352
/**
353353
* Get comprehensive process state information.
354354
*
355-
* @return array<string, mixed>
355+
* @return array{
356+
* pid: int,
357+
* running: bool,
358+
* pcntl_available: bool,
359+
* registered_signals: int,
360+
* registered_signals_names: array<int, string>,
361+
* signals_blocked: bool,
362+
* explicit_mappings: int,
363+
* memory_usage_mb: float,
364+
* memory_peak_mb: float,
365+
* session_id?: false|int,
366+
* process_group?: false|int,
367+
* has_controlling_terminal?: bool
368+
* }
356369
*/
357370
protected function getProcessState(): array
358371
{

0 commit comments

Comments
 (0)