| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | interface IAttribute |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param \DOMDocument $document |
||
| 9 | * @param string $prefix |
||
|
|
|||
| 10 | * @param string $type |
||
| 11 | * @return \DOMElement |
||
| 12 | */ |
||
| 13 | function toXml(\DOMDocument $document, $prefix = null, $type = null); |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param \SimpleXMLElement $xml |
||
| 17 | * @return IAttribute |
||
| 18 | */ |
||
| 19 | static function createFromXml(\SimpleXMLElement $xml); |
||
| 20 | } |
||
| 21 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.