for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Padawan\Domain\Project\Node;
use Padawan\Domain\Project\FQCN;
class ClassProperty
{
public $name;
public $modifier = 0;
/** @property FQCN|string $type */
public $type = "";
public $defauls = "";
public $doc = "";
public function __construct($name = "", $type = "") {
$this->name = $name;
$this->type = $type;
}
public function getType() {
return $this->type;
public function setType(FQCN $fqcn) {
$this->type = $fqcn;
$fqcn
object<Padawan\Domain\Project\FQCN>
string
$type
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
public function isPublic() {
return (bool) ($this->modifier & ClassData::MODIFIER_PUBLIC);
public function isProtected() {
return (bool) ($this->modifier & ClassData::MODIFIER_PROTECTED);
public function isPrivate() {
return (bool) ($this->modifier & ClassData::MODIFIER_PRIVATE);
public function isStatic() {
return (bool) ($this->modifier & ClassData::MODIFIER_STATIC);
/**
* @param integer $modifier
*/
public function setModifier($modifier){
$this->modifier = $modifier;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..