| 1 | <?php |
||
| 32 | class UserPostResponseEvent extends UserPostEvent |
||
| 33 | { |
||
| 34 | /** |
||
| 35 | * |
||
| 36 | * @access protected |
||
| 37 | * @var \Symfony\Component\HttpFoundation\Response $response |
||
| 38 | */ |
||
| 39 | protected $response; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * |
||
| 43 | * @access public |
||
| 44 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 45 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
| 46 | * @param \CCDNForum\ForumBundle\Entity\Post $post |
||
|
|
|||
| 47 | */ |
||
| 48 | public function __construct(Request $request, Response $response, Post $post = null) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * |
||
| 57 | * @access public |
||
| 58 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 59 | */ |
||
| 60 | public function getResponse() |
||
| 64 | } |
||
| 65 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.