8000 [HttpKernel] allow narrow type of not nullable getResponse when hasRe… · devloop42/symfony@69f2f48 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69f2f48

Browse files
shyimnicolas-grekas
authored andcommitted
[HttpKernel] allow narrow type of not nullable getResponse when hasResponse has been called
1 parent 5cabe45 commit 69f2f48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public function setResponse(Response $response): void
4646

4747
/**
4848
* Returns whether a response was set.
49+
*
50+
* @psalm-assert-if-true !null $this->getResponse()
4951
*/
5052
public function hasResponse(): bool
5153
{
0 commit comments
Comments
 (0)
0