| 1 | <?php |
||
| 5 | class MigrationCreator extends \Illuminate\Database\Migrations\MigrationCreator |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Get the migration stub file. |
||
| 9 | * |
||
| 10 | * @param string $table |
||
|
|
|||
| 11 | * @param bool $create |
||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | protected function getStub($t, $c) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Populate the place-holders in the migration stub. |
||
| 21 | * |
||
| 22 | * @param string $name |
||
| 23 | * @param string $stub |
||
| 24 | * @param \Illuminate\Support\Collection|array $migrations |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | protected function populateStub($name, $stub, $migrations) |
||
| 49 | } |
||
| 50 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.