for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Genkgo\Camt\DTO;
class ContactDetails
{
/**
* @var string|null
*/
private $namePrefix;
private $name;
private $phoneNumber;
private $mobileNumber;
private $faxNumber;
private $emailAddress;
private $other;
* @return string|null
public function getNamePrefix()
return $this->namePrefix;
}
* @param string $namePrefix
public function setNamePrefix($namePrefix)
$this->namePrefix = $namePrefix;
public function getName()
return $this->name;
* @param string $name
public function setName($name)
$this->name = $name;
public function getPhoneNumber()
return $this->phoneNumber;
$name
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 setPhoneNumber($phoneNumber)
$this->phoneNumber = $phoneNumber;
public function getMobileNumber()
return $this->mobileNumber;
public function setMobileNumber($mobileNumber)
$this->mobileNumber = $mobileNumber;
public function getFaxNumber()
return $this->faxNumber;
public function setFaxNumber($faxNumber)
$this->faxNumber = $faxNumber;
public function getEmailAddress()
return $this->emailAddress;
public function setEmailAddress($emailAddress)
$this->emailAddress = $emailAddress;
public function getOther()
return $this->other;
public function setOther($other)
$this->other = $other;
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.