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
-------

8e49598788 Fix PHPDoc return type
This commit is contained in:
Fabien Potencier 2018-07-18 14:32:06 +02:00
commit f7583be1da

View File

@ -29,7 +29,7 @@ class GetResponseEvent extends KernelEvent
/**
* Returns the response object.
*
* @return Response
* @return Response|null
*/
public function getResponse()
{