1 | <?php |
||
24 | final class SecondFactor implements JsonSerializable |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $secondFactor; |
||
30 | |||
31 | /** |
||
32 | * @param string $secondFactor |
||
33 | */ |
||
34 | public function __construct($secondFactor) |
||
42 | |||
43 | /** |
||
44 | * @param SecondFactor $other |
||
|
|||
45 | * @return bool |
||
46 | */ |
||
47 | public function equals(self $other) |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getSecondFactor() |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function __toString() |
||
67 | |||
68 | public function jsonSerialize() |
||
72 | } |
||
73 |
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.