From 9e45f567ef2e8cf6e73efb7c2d17f464fdcde485 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 27 Nov 2023 11:24:16 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- phpstan-baseline.neon | 11 +++++++++++ src/Concerns/UsesGeneratorOverrides.php | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e69de29..436db50 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -0,0 +1,11 @@ +parameters: + ignoreErrors: + - + 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 diff --git a/src/Concerns/UsesGeneratorOverrides.php b/src/Concerns/UsesGeneratorOverrides.php index 129a968..759ea59 100644 --- a/src/Concerns/UsesGeneratorOverrides.php +++ b/src/Concerns/UsesGeneratorOverrides.php @@ -2,7 +2,6 @@ namespace Orchestra\Canvas\Core\Concerns; -use Illuminate\Console\Generators\Presets\Preset; use Illuminate\Support\Str; use Symfony\Component\Finder\Finder; @@ -107,6 +106,8 @@ abstract protected function rootNamespace(); /** * Resolve the generator preset. + * + * @return \Illuminate\Console\Generators\Presets\Preset */ - abstract protected function generatorPreset(): Preset; + abstract protected function generatorPreset(); }