From 3f0479a931cb7152b69205a81f5c90d0c4007b10 Mon Sep 17 00:00:00 2001 From: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> Date: Sun, 20 Mar 2022 23:02:31 +0100 Subject: [PATCH] fix psalm issues --- composer.json | 1 + phpcs.xml | 1 + psalm-baseline.xml | 7 ++++++- psalm.xml | 1 - src/Fakes/FakeModelsCommand.php | 2 +- tests/Support/Module.php | 2 +- 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index a63a7e5..2668f21 100644 --- a/composer.json +++ b/composer.json @@ -45,6 +45,7 @@ }, "scripts": { "analyze": "psalm", + "analyse": "psalm", "lint": "phpcs -n", "lint-fix": "phpcbf -n", "test": "codecept run --skip-group skip", diff --git a/phpcs.xml b/phpcs.xml index daaa4f5..c388a1f 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -22,4 +22,5 @@ tests src/cache/ tests/_support/ + tests/Support/ diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 69f8fa3..63b50bc 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,10 @@ - + + + + require $applicationPath + + databasePath diff --git a/psalm.xml b/psalm.xml index 072c2c9..38398df 100644 --- a/psalm.xml +++ b/psalm.xml @@ -1,6 +1,5 @@ getTable(); diff --git a/tests/Support/Module.php b/tests/Support/Module.php index 2d4b4b8..abaf5fe 100644 --- a/tests/Support/Module.php +++ b/tests/Support/Module.php @@ -551,4 +551,4 @@ class Module extends BaseModule ); $this->debug($this->remainingErrors()); } -} \ No newline at end of file +}