diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0703a7f..8e5e295 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,6 +5,16 @@ parameters: count: 1 path: src/Commands/GeneratorCommand.php + - + message: "#^Call to an undefined method Illuminate\\\\Contracts\\\\Foundation\\\\Application\\:\\:joinPaths\\(\\)\\.$#" + count: 1 + path: src/Commands/MigrationGeneratorCommand.php + + - + message: "#^Cannot access offset 'migration\\.creator' on Illuminate\\\\Contracts\\\\Foundation\\\\Application\\.$#" + count: 1 + path: src/Commands/MigrationGeneratorCommand.php + - message: "#^Parameter \\#1 \\$app of class Orchestra\\\\Canvas\\\\Core\\\\Presets\\\\Laravel constructor expects Illuminate\\\\Contracts\\\\Foundation\\\\Application, Illuminate\\\\Contracts\\\\Container\\\\Container given\\.$#" count: 1 diff --git a/src/Commands/MigrationGeneratorCommand.php b/src/Commands/MigrationGeneratorCommand.php index 24d914f..0c62781 100644 --- a/src/Commands/MigrationGeneratorCommand.php +++ b/src/Commands/MigrationGeneratorCommand.php @@ -10,15 +10,13 @@ * @property string|null $name * @property string|null $description */ -class MigrationGeneratorCommand extends \Illuminate\Console\MigrationGeneratorCommand +abstract class MigrationGeneratorCommand extends \Illuminate\Console\MigrationGeneratorCommand { use MigrationGenerator; /** * Create a new notifications table command instance. * - * @param \Illuminate\Filesystem\Filesystem $files - * @param \Illuminate\Support\Composer $composer * @return void */ public function __construct(Filesystem $files, Composer $composer)