for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yokai\SecurityTokenBundle\Entity;
use DateTime;
class TokenUsage
{
/**
* @var int
*/
private $id;
* @var Token
private $token;
* @var DateTime
private $createdAt;
* @var array
private $information = [];
* @param Token $token
* @param array $information
* @param DateTime $createdAt
$createdAt
null|DateTime
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(Token $token, array $information, DateTime $createdAt = null)
$this->token = $token;
$this->information = $information;
$this->createdAt = $createdAt ?: new DateTime();
}
* @return int
public function getId()
return $this->id;
* @return Token
public function getToken()
return $this->token;
* @return DateTime
public function getCreatedAt()
return $this->createdAt;
* @return array
public function getInformation()
return $this->information;
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.