Skip to content

Commit d2d869f

Browse files
minor #61550 [Console] Add phpdoc for return type of subscribed signals (nesl247)
This PR was squashed before being merged into the 7.4 branch. Discussion ---------- [Console] Add phpdoc for return type of subscribed signals | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no <!-- if yes, also update src/**/CHANGELOG.md --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Issues | | License | MIT The signals are integers, but the array return type was missing. This meant we had to add this to every implementation to prevent phpstan from complaining. Commits ------- 8885fc4 [Console] Add phpdoc for return type of subscribed signals
2 parents e4e9fa4 + 8885fc4 commit d2d869f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Console/Command/SignalableCommandInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ interface SignalableCommandInterface
2020
{
2121
/**
2222
* Returns the list of signals to subscribe.
23+
*
24+
* @return list<\SIG*>
25+
*
26+
* @see https://php.net/pcntl.constants for signals
2327
*/
2428
public function getSubscribedSignals(): array;
2529

0 commit comments

Comments
 (0)