| 1 | <?php |
||
| 18 | abstract class Registry |
||
| 19 | { |
||
| 20 | /** @var UserInterface $ownedBy */ |
||
| 21 | protected $ownedBy = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * |
||
| 25 | * @access public |
||
| 26 | */ |
||
| 27 | public function __construct() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get owned_by |
||
| 34 | * |
||
| 35 | * @return UserInterface |
||
| 36 | */ |
||
| 37 | public function getOwnedBy() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Set owned_by |
||
| 44 | * |
||
| 45 | * @param UserInterface $ownedBy |
||
|
|
|||
| 46 | * @return Registry |
||
| 47 | */ |
||
| 48 | public function setOwnedBy(UserInterface $ownedBy = null) |
||
| 54 | } |
||
| 55 |
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.