| Total Complexity | 3 | 
| Total Lines | 26 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php declare(strict_types=1);  | 
            ||
| 8 | final class ResourceNotFoundException extends AbstractException  | 
            ||
| 9 | { | 
            ||
| 10 | |||
| 11 | /**  | 
            ||
| 12 | * Constructor of the class  | 
            ||
| 13 | *  | 
            ||
| 14 | * @param null|string $message  | 
            ||
| 15 | */  | 
            ||
| 16 | public function __construct(string $message = null)  | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Throws the exception if the given entity is NULL  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param null|object $entity  | 
            ||
| 25 | *  | 
            ||
| 26 | * @return void  | 
            ||
| 27 | *  | 
            ||
| 28 | * @throws self  | 
            ||
| 29 | */  | 
            ||
| 30 | public static function assert(?object $entity) : void  | 
            ||
| 37 | 
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.