| 1 | <?php |
||
| 29 | class BaseCrumbBuilder |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * |
||
| 33 | * @access protected |
||
| 34 | * @var \CCDNForum\ForumBundle\Component\Crumbs\Factory\CrumbFactory $crumbFactory |
||
| 35 | */ |
||
| 36 | protected $crumbFactory; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * |
||
| 40 | * @access public |
||
| 41 | * @param \CCDNForum\ForumBundle\Component\Crumbs\Factory\CrumbFactory $crumbs |
||
|
|
|||
| 42 | */ |
||
| 43 | public function __construct(CrumbFactory $crumbFactory) |
||
| 47 | |||
| 48 | public function createCrumbTrail() |
||
| 52 | } |
||
| 53 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.