1 | <?php |
||
31 | final class CollectionRunnerFactory implements CollectionRunnerFactoryInterface |
||
32 | { |
||
33 | /** @var PublisherInterface */ |
||
34 | private $publisher; |
||
35 | |||
36 | /** @var RunnerInterface */ |
||
37 | private $migrationRunner; |
||
38 | |||
39 | /** |
||
40 | * CollectionRunnerFactory constructor. |
||
41 | * @param PublisherInterface $publisher |
||
|
|||
42 | * @param RunnerInterface $migrationRunner |
||
43 | */ |
||
44 | 3 | public function __construct(PublisherInterface $publisher = null, RunnerInterface $migrationRunner = null) |
|
49 | |||
50 | /** |
||
51 | * Creates a CollectionRunner for the specified collection |
||
52 | * |
||
53 | * @param CollectionInterface $collection |
||
54 | * @return RunnerInterface |
||
55 | */ |
||
56 | 1 | public function create(CollectionInterface $collection) |
|
60 | } |
||
61 |
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.