| Total Complexity | 2 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 46 | class GH7366Entity  | 
            ||
| 47 | { | 
            ||
| 48 | /**  | 
            ||
| 49 | * @ORM\Id  | 
            ||
| 50 | * @ORM\Column(type="integer")  | 
            ||
| 51 | * @ORM\GeneratedValue  | 
            ||
| 52 | * @var int  | 
            ||
| 53 | */  | 
            ||
| 54 | public $id;  | 
            ||
| 55 | |||
| 56 | /**  | 
            ||
| 57 | * @ORM\Column(type="integer")  | 
            ||
| 58 | * @ORM\Version  | 
            ||
| 59 | */  | 
            ||
| 60 | protected $lockVersion = 1;  | 
            ||
| 61 | |||
| 62 | /**  | 
            ||
| 63 | * @ORM\Column(length=32)  | 
            ||
| 64 | * @var string  | 
            ||
| 65 | */  | 
            ||
| 66 | protected $name;  | 
            ||
| 67 | |||
| 68 | |||
| 69 | public function __construct(string $name)  | 
            ||
| 72 | }  | 
            ||
| 73 | |||
| 74 | public function getName() : string  | 
            ||
| 79 | 
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.