1 | <?php |
||
9 | class MakeCommand extends AbstractCommand |
||
10 | { |
||
11 | /** |
||
12 | * Migrator instance. |
||
13 | * |
||
14 | * @var Migrator |
||
15 | */ |
||
16 | protected $migrator; |
||
17 | |||
18 | protected static $defaultName = 'make'; |
||
19 | |||
20 | /** |
||
21 | * Constructor. |
||
22 | * |
||
23 | * @param Migrator $migrator |
||
24 | * @param string|null $name |
||
25 | */ |
||
26 | public function __construct(Migrator $migrator, $name = null) |
||
32 | |||
33 | /** |
||
34 | * Configures the current command. |
||
35 | */ |
||
36 | protected function configure() |
||
57 | |||
58 | /** |
||
59 | * Execute the console command. |
||
60 | * |
||
61 | * @return null|int |
||
62 | */ |
||
63 | protected function fire() |
||
74 | } |
||
75 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.