From 5a66792b6594e92160201ba177c99a17854afd91 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Fri, 26 Jan 2024 13:38:52 +0300 Subject: [PATCH] Fix psalm (#191) --- .github/workflows/static.yml | 11 ++++++++++- composer.json | 2 +- psalm.xml | 6 +++++- psalm80.xml | 19 +++++++++++++++++++ 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 psalm80.xml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 96b26790..e34190e8 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -10,6 +10,7 @@ on: - 'phpunit.xml.dist' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -28,4 +29,12 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.0', '8.1'] + ['8.1', '8.2', '8.3'] + psalm80: + uses: yiisoft/actions/.github/workflows/psalm.yml@master + with: + psalm-config: psalm80.xml + os: >- + ['ubuntu-latest'] + php: >- + ['8.0'] diff --git a/composer.json b/composer.json index 824dfdf6..1142038a 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "phpunit/phpunit": "^9.5", "rector/rector": "^0.19.0", "roave/infection-static-analysis-plugin": "^1.16", - "vimeo/psalm": "^4.30|^5.6", + "vimeo/psalm": "^4.30|^5.20", "yiisoft/config": "^1.3", "yiisoft/di": "^1.2", "yiisoft/test-support": "^3.0" diff --git a/psalm.xml b/psalm.xml index 73ed7155..b48c894e 100644 --- a/psalm.xml +++ b/psalm.xml @@ -10,7 +10,11 @@ - + + + + + diff --git a/psalm80.xml b/psalm80.xml new file mode 100644 index 00000000..d091d59c --- /dev/null +++ b/psalm80.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + +