for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the core-bundle package.
*
* (c) 2019 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\CoreBundle\Model\Attribute;
/**
* String last name trait.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\CoreBundle\Model\Attribute
trait StringLastNameTrait {
* Last name.
* @var string
private $lastName;
* Get the last name.
* @return string Returns the last name.
public function getLastName() {
return $this->lastName;
}
* Set the last name.
* @param string $last name The last name.
$last
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 $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
public function setLastName($lastName) {
$this->lastName = $lastName;
return $this;
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.