8000 minor #27983 [DX] Fix PHPDoc return type (Jean85) · symfony/symfony@f7583be · GitHub
[go: up one dir, main page]

Skip to content

Commit f7583be

Browse files
committed
minor #27983 [DX] Fix PHPDoc return type (Jean85)
This PR was merged into the 2.8 branch. Discussion ---------- [DX] Fix PHPDoc return type GetResponseEvent::getResponse() may return null too | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT While doing static analysis on my code, I got a false negative for this method, since it may return null, but the PHPDoc says otherwise. Commits ------- 8e49598 Fix PHPDoc return type
2 parents 0902337 + 8e49598 commit f7583be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class GetResponseEvent extends KernelEvent
2929
/**
3030
* Returns the response object.
3131
*
32-
* @return Response
32+
* @return Response|null
3333
*/
3434
public function getResponse()
3535
{

0 commit comments

Comments
 (0)
0