for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kunstmaan\NodeBundle\Event;
use Kunstmaan\NodeBundle\Helper\RenderContext;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\HttpFoundation\Response;
/**
* Class SlugEvent
* @package Kunstmaan\NodeBundle\Event
*/
class SlugEvent extends Event
{
* @var Response
protected $response;
* @var RenderContext
protected $renderContext;
* @param Response $response
$response
null|Response
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
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.
* @param RenderContext $renderContext
public function __construct(Response $response = null, RenderContext $renderContext)
$this->response = $response;
$this->renderContext = $renderContext;
}
* @return Response
public function getResponse()
return $this->response;
public function setResponse(Response $response)
* @return RenderContext
public function getRenderContext()
return $this->renderContext;
public function setRenderContext(RenderContext $renderContext)
This check looks for
@param
annotations 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.