diff --git a/.github/workflows/code-format-check.yml b/.github/workflows/code-format-check.yml index 8d2494d..1e0d992 100644 --- a/.github/workflows/code-format-check.yml +++ b/.github/workflows/code-format-check.yml @@ -28,9 +28,5 @@ jobs: - name: Run PHP_CodeSniffer run: php ./vendor/bin/phpcs --standard=./configs/phpcs.xml ./app - - name: Update Psalm Configuration for GitHub Actions - run: | - sed -i 's|../psalm/stubs.php|/home/runner/work/CodeIgniter4-template/CodeIgniter4-template/psalm/stubs.php|' ./configs/psalm.xml - - name: Run Psalm run: php ./vendor/bin/psalm --config=./configs/psalm.xml \ No newline at end of file diff --git a/Makefile b/Makefile index 2fd4b70..2fd36e3 100644 --- a/Makefile +++ b/Makefile @@ -105,4 +105,10 @@ check_format_from_composer: composer run check_format psalm: - vendor/bin/psalm --config=./configs/psalm.xml \ No newline at end of file + vendor/bin/psalm --config=./configs/psalm.xml + +psalm_clear_cache: + vendor/bin/psalm --clear-cache --config=./configs/psalm.xml + +psalm_forced_start: + make -B psalm \ No newline at end of file diff --git a/configs/psalm.xml b/configs/psalm.xml index 48ed5e7..738f2fc 100644 --- a/configs/psalm.xml +++ b/configs/psalm.xml @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/psalm/psalm.php b/psalm/psalm.php index c14e949..f12f6a5 100644 --- a/psalm/psalm.php +++ b/psalm/psalm.php @@ -1,28 +1,20 @@