1 | <?php |
||
10 | class MigrationService extends ServiceAbstract implements ServiceInterface |
||
11 | { |
||
12 | use CanGenerateFile; |
||
13 | |||
14 | protected $key = 'migration'; |
||
15 | |||
16 | public function call() |
||
25 | |||
26 | protected function buildFileContent() |
||
32 | |||
33 | /** |
||
34 | * Replace migration fields in stub file. |
||
35 | * |
||
36 | * @return string |
||
|
|||
37 | */ |
||
38 | protected function replaceMigrationFields(): void |
||
42 | |||
43 | /** |
||
44 | * Generates the migration fields from schema |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | protected function generateMigrationFields(): string |
||
67 | } |
||
68 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.