for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class TypeUser extends \Phalcon\Mvc\Model
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
*
* @var integer
*/
protected $id;
* @var string
protected $libelle;
* Method to set the value of field id
* @param integer $id
* @return $this
public function setId($id)
$this->id = $id;
return $this;
}
* Method to set the value of field objet
* @param string $objet
$objet
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 setLibelle($libelle)
$this->libelle = $libelle;
* Returns the value of field id
* @return integer
public function getId()
return $this->id;
* Returns the value of field objet
* @return string
public function getLibelle()
return $this->libelle;
* Initialize method for model.
public function initialize()
$this->hasMany('id', 'Acl', 'idTypeUser', array('alias' => 'Acl'));
$this->hasMany('id', 'User', 'idTypeUser', array('alias' => 'Users'));
* Returns table name mapped in the model.
public function getSource()
return 'typeuser';
* Allows to query a set of records that match the specified conditions
* @param mixed $parameters
* @return TypeUser[]
public static function find($parameters = null)
return parent::find($parameters);
* Allows to query the first record that match the specified conditions
* @return TypeUser
public static function findFirst($parameters = null)
return parent::findFirst($parameters);
public function toString() {
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.