| 1 | <?php  | 
            ||
| 10 | class RegistryEntry  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @var DataProviderInterface  | 
            ||
| 14 | */  | 
            ||
| 15 | private $provider;  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * @var string  | 
            ||
| 19 | */  | 
            ||
| 20 | private $index;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @var string  | 
            ||
| 24 | */  | 
            ||
| 25 | private $type;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @param DataProvider $provider  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 29 | * @param string $index  | 
            ||
| 30 | * @param string $type  | 
            ||
| 31 | */  | 
            ||
| 32 | 3 | public function __construct(DataProviderInterface $provider, $index, $type)  | 
            |
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Get provider  | 
            ||
| 41 | *  | 
            ||
| 42 | * @return DataProviderInterface  | 
            ||
| 43 | */  | 
            ||
| 44 | 2 | public function getProvider()  | 
            |
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * Get index  | 
            ||
| 51 | *  | 
            ||
| 52 | * @return string  | 
            ||
| 53 | */  | 
            ||
| 54 | 3 | public function getIndex()  | 
            |
| 58 | /**  | 
            ||
| 59 | * Get type  | 
            ||
| 60 | *  | 
            ||
| 61 | * @return string  | 
            ||
| 62 | */  | 
            ||
| 63 | 3 | public function getType()  | 
            |
| 67 | |||
| 68 | 2 | public function match($index, $type)  | 
            |
| 75 | }  | 
            
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.