1 | <?php |
||
23 | class BlockingConsumerFactory implements FactoryInterface |
||
24 | { |
||
25 | /** |
||
26 | * Make a new BlockingConsumer instance. |
||
27 | * |
||
28 | * @param \Projectmentor\Quota\Stubs\PayloadInterface $data |
||
|
|||
29 | * @return \Projectmentor\Quota\BlockingConsumer |
||
30 | */ |
||
31 | 1 | public function make(PayloadInterface $data) |
|
35 | } |
||
36 |
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.