File tree Expand file tree Collapse file tree 7 files changed +16
-11
lines changed Expand file tree Collapse file tree 7 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -137,17 +137,18 @@ jobs:
137
137
../../bin/phpstan -vvv
138
138
- script : |
139
139
cd e2e/env-parameter
140
- export PHPSTAN_SCOPE_CLASS=MyTestScope
141
- ACTUAL=$(../../bin/phpstan dump-parameters -c phpstan.neon --json -l 9 | jq --raw-output '.scopeClass ')
142
- [[ "$ACTUAL" == "MyTestScope " ]];
140
+ export PHPSTAN_RESULT_CACHE_PATH=/some/path
141
+ ACTUAL=$(../../bin/phpstan dump-parameters -c phpstan.neon --json -l 9 | jq --raw-output '.resultCachePath ')
142
+ [[ "$ACTUAL" == "/some/path " ]];
143
143
- script : |
144
144
cd e2e/result-cache-8
145
145
composer install
146
146
../../bin/phpstan
147
147
echo -en '\n' >> build/CustomRule.php
148
- OUTPUT=$(../../bin/phpstan 2>&1)
149
- grep 'Result cache might not behave correctly' <<< "$OUTPUT"
150
- grep 'ResultCache8E2E\\CustomRule' <<< "$OUTPUT"
148
+ OUTPUT=$(../../bin/phpstan analyze 2>&1 || true)
149
+ echo "$OUTPUT"
150
+ ../bashunit -a contains 'Result cache might not behave correctly' "$OUTPUT"
151
+ ../bashunit -a contains 'ResultCache8E2E\\CustomRule' "$OUTPUT"
151
152
- script : |
152
153
cd e2e/env-int-key
153
154
env 1=1 ../../bin/phpstan analyse test.php
Original file line number Diff line number Diff line change 1
1
parameters :
2
2
ignoreErrors :
3
3
-
4
- message : " #^Offset 'foo' does not exist on array\\ {foo\\ ?\\ : int\\ }\\ .$#"
4
+ message : " #^Offset 'foo' might not exist on array\\ {foo\\ ?\\ : int\\ }\\ .$#"
5
5
count : 1
6
6
path : src/UsesBar.php
Original file line number Diff line number Diff line change 1
1
parameters :
2
2
ignoreErrors :
3
3
-
4
- message : " #^Offset 'foo' does not exist on array\\ {foo\\ ?\\ : int\\ }\\ .$#"
4
+ message : " #^Offset 'foo' might not exist on array\\ {foo\\ ?\\ : int\\ }\\ .$#"
5
5
count : 1
6
6
path : src/Bar.php
Original file line number Diff line number Diff line change 1
1
parameters :
2
2
excludePaths :
3
- analyseAndScan :
4
- - .git
5
3
analyse :
6
4
- vendor
7
5
Original file line number Diff line number Diff line change 1
1
parameters :
2
- scopeClass : %env.PHPSTAN_SCOPE_CLASS %
2
+ resultCachePath : %env.PHPSTAN_RESULT_CACHE_PATH %
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ parameters:
5
5
level : 8
6
6
paths :
7
7
- src
8
+ ignoreErrors :
9
+ -
10
+ identifier : instanceof.alwaysTrue
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ parameters:
5
5
level : 8
6
6
paths :
7
7
- src
8
+ ignoreErrors :
9
+ -
10
+ identifier : trait.unused
You can’t perform that action at this time.
0 commit comments