Skip to content

Commit

Permalink
Update vimeo/psalm requirement from ^4.18 to ^5.6 + Fix BC checker (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
dependabot[bot] and vjik authored Feb 8, 2023
1 parent 4d322aa commit 40fbb41
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
on:
pull_request:
push:
- pull_request
- push

name: backwards compatibility
jobs:
roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
roave_bc_check:
uses: yiisoft/actions/.github/workflows/bc.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.0']
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"phpunit/phpunit": "^9.5",
"roave/infection-static-analysis-plugin": "^1.16",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^4.18",
"vimeo/psalm": "^4.30|^5.6",
"yiisoft/test-support": "^1.3"
},
"autoload": {
Expand Down
19 changes: 2 additions & 17 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<InvalidCatch>
<errorLevel type="suppress">
<referencedClass name="Psr\Container\ContainerExceptionInterface" />
<referencedClass name="Psr\Container\NotFoundExceptionInterface" />
</errorLevel>
</InvalidCatch>
<InvalidThrow>
<errorLevel type="suppress">
<referencedClass name="Psr\Container\ContainerExceptionInterface" />
<referencedClass name="Psr\Container\NotFoundExceptionInterface" />
</errorLevel>
</InvalidThrow>
</issueHandlers>
</psalm>

0 comments on commit 40fbb41

Please sign in to comment.