| 1 | <?php  | 
            ||
| 25 | class StringMessage extends \PEIP\Message\GenericMessage  | 
            ||
| 26 | { | 
            ||
| 27 | const CONTENT_CAST_TYPE = 'string';  | 
            ||
| 28 | |||
| 29 | public function __toString()  | 
            ||
| 33 | |||
| 34 | public function getContent()  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Provides a static build method to create new Instances of this class.  | 
            ||
| 41 | * Implements \PEIP\INF\Base\Buildable. Overwrites \PEIP\Message\GenericMessage::build.  | 
            ||
| 42 | *  | 
            ||
| 43 | * @static  | 
            ||
| 44 | * @implements \PEIP\INF\Base\Buildable  | 
            ||
| 45 | *  | 
            ||
| 46 | * @param string $name the name of the header  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 47 | *  | 
            ||
| 48 | * @return bool wether the header is set  | 
            ||
| 49 | */  | 
            ||
| 50 | public static function build(array $arguments = [])  | 
            ||
| 54 | }  | 
            ||
| 55 | 
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.