for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @filesource
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
* @author Miroslav Fedeleš <[email protected]>
* @since 0.27
*/
namespace Auth\Dependency;
class ListItem
{
* @var string
protected $title;
protected $url;
* @param string $title
* @param string $url
$url
string|null
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.
public function __construct($title, $url = null)
$this->title = $title;
$this->url = $url;
}
* @return string
public function getTitle()
return $this->title;
* @return string|null
public function getUrl()
return $this->url;
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.