1 | <?php |
||
9 | class MongoId extends \MongoId |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @param string $id |
||
|
|||
14 | */ |
||
15 | public function __construct($id = null) |
||
27 | |||
28 | /** |
||
29 | * Import |
||
30 | * @param mixed $id ID |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public static function import($id) |
||
61 | |||
62 | /** |
||
63 | * __toString |
||
64 | * @return string |
||
65 | */ |
||
66 | public function __toString() |
||
70 | |||
71 | /** |
||
72 | * toHex |
||
73 | * @return string |
||
74 | */ |
||
75 | public function toHex() |
||
79 | |||
80 | /** |
||
81 | * getPlainObject |
||
82 | * @return \MongoId |
||
83 | */ |
||
84 | public function getPlainObject() |
||
88 | } |
||
89 |
This check looks for
@param
annotations 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.