| 1 | <?php |
||
| 9 | class MigrateMakeCommand extends BaseMigrateMakeCommand |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The console command signature. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $signature = 'make:migration {name : The name of the migration.} |
||
| 17 | {--module= : The name of the module.} |
||
| 18 | {--create= : The table to be created.} |
||
| 19 | {--table= : The table to migrate.} |
||
| 20 | {--path= : The location where the migration file should be created.}'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get migration path (either specified by '--path' option or module location). |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | protected function getMigrationPath() |
||
| 39 | } |
||
| 40 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: