From ccdd08c981f84ded32943412295fad3d9c14bea6 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sun, 22 Jun 2025 11:11:46 +0200 Subject: [PATCH] update stan --- .phive/phars.xml | 3 +-- composer.json | 7 +------ psalm-baseline.xml | 19 ------------------- psalm.xml | 20 -------------------- src/BakePlugin.php | 2 +- src/Command/EntryCommand.php | 1 - src/Command/TestCommand.php | 1 - 7 files changed, 3 insertions(+), 50 deletions(-) delete mode 100644 psalm-baseline.xml delete mode 100644 psalm.xml diff --git a/.phive/phars.xml b/.phive/phars.xml index a655ee468..f5aa33004 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,5 +1,4 @@ - - + diff --git a/composer.json b/composer.json index d41d0d33c..fedab7a39 100644 --- a/composer.json +++ b/composer.json @@ -61,12 +61,7 @@ "cs-check": "phpcs --parallel=16 -p src/ tests/", "cs-fix": "phpcbf --parallel=16 -p src/ tests/", "phpstan": "tools/phpstan analyse", - "psalm": "tools/psalm --show-info=false", - "psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml", - "stan": [ - "@phpstan", - "@psalm" - ], + "stan": "@phpstan", "stan-baseline": "tools/phpstan --generate-baseline", "stan-setup": "phive install", "test": "phpunit", diff --git a/psalm-baseline.xml b/psalm-baseline.xml deleted file mode 100644 index e510fb81e..000000000 --- a/psalm-baseline.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - new Filesystem() - - - findRecursive - - - - - new Filesystem() - - - find - - - diff --git a/psalm.xml b/psalm.xml deleted file mode 100644 index 1b5062a7a..000000000 --- a/psalm.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - diff --git a/src/BakePlugin.php b/src/BakePlugin.php index bb91af0d8..0b02eaad3 100644 --- a/src/BakePlugin.php +++ b/src/BakePlugin.php @@ -115,7 +115,7 @@ protected function discoverCommands(CommandCollection $commands): CommandCollect * @param string $namespace The namespace classes are expected to be in. * @param string $path The path to look in. * @return array - * @psalm-return array> + * @phpstan-return array> */ protected function findInPath(string $namespace, string $path): array { diff --git a/src/Command/EntryCommand.php b/src/Command/EntryCommand.php index b950ef3dc..87b9dd759 100644 --- a/src/Command/EntryCommand.php +++ b/src/Command/EntryCommand.php @@ -130,7 +130,6 @@ public function execute(Arguments $args, ConsoleIo $io): ?int public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionParser { $this->help = new HelpCommand(); - /** @psalm-suppress InaccessibleMethod Protected methods as class based */ $parser = $this->help->buildOptionParser($parser); $parser ->setDescription( diff --git a/src/Command/TestCommand.php b/src/Command/TestCommand.php index e39a3067b..dd5e6c301 100644 --- a/src/Command/TestCommand.php +++ b/src/Command/TestCommand.php @@ -446,7 +446,6 @@ public function generateFixtureList(Table|Controller $subject): array $this->_processController($subject); } - /** @psalm-suppress RedundantFunctionCall */ return array_values($this->_fixtures); }