Skip to content

Commit a1df50a

Browse files
Update psalm + Fix BC checker + Tests in PHP 8.2 (#95)
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
1 parent b35142c commit a1df50a

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

.github/workflows/bc.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
on:
2-
pull_request:
3-
push:
2+
- pull_request
3+
- push
44

55
name: backwards compatibility
6+
67
jobs:
78
roave_bc_check:
8-
name: Roave BC Check
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@master
12-
- name: fetch tags
13-
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
14-
- name: Roave BC Check
15-
uses: docker://nyholm/roave-bc-check-ga
9+
uses: yiisoft/actions/.github/workflows/bc.yml@master
10+
with:
11+
os: >-
12+
['ubuntu-latest']
13+
php: >-
14+
['8.0']

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
os: >-
2929
['ubuntu-latest', 'windows-latest']
3030
php: >-
31-
['7.4', '8.0', '8.1']
31+
['7.4', '8.0', '8.1', '8.2']

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
os: >-
2929
['ubuntu-latest']
3030
php: >-
31-
['7.4', '8.0', '8.1']
31+
['7.4', '8.0', '8.1', '8.2']

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"phpunit/phpunit": "^9.5",
2626
"roave/infection-static-analysis-plugin": "^1.16",
2727
"spatie/phpunit-watcher": "^1.23",
28-
"vimeo/psalm": "^4.18"
28+
"vimeo/psalm": "^4.30|^5.8"
2929
},
3030
"autoload": {
3131
"psr-4": {

psalm.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<?xml version="1.0"?>
22
<psalm
33
errorLevel="1"
4+
findUnusedBaselineEntry="true"
5+
findUnusedCode="false"
46
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
57
xmlns="https://getpsalm.org/schema/config"
68
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
79
>
810
<projectFiles>
911
<directory name="src" />
12+
<ignoreFiles>
13+
<directory name="vendor" />
14+
</ignoreFiles>
1015
</projectFiles>
1116
</psalm>

src/StringHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ public static function parsePath(
535535
return [];
536536
}
537537

538+
/** @psalm-var non-empty-list<array{0:string, 1:int}> $matches */
538539
$matches = preg_split(
539540
sprintf(
540541
'/(?<!%1$s)((?>%1$s%1$s)*)%2$s/',

0 commit comments

Comments
 (0)