Skip to content

Commit 0855dc1

Browse files
committed
Fix stan errors
1 parent 90675b2 commit 0855dc1

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.phive/phars.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="phpstan" version="1.10.38" installed="1.10.38" location="./tools/phpstan" copy="false"/>
4-
<phar name="psalm" version="5.15.0" installed="5.15.0" location="./tools/psalm" copy="false"/>
3+
<phar name="phpstan" version="1.12.3" installed="1.12.3" location="./tools/phpstan" copy="false"/>
4+
<phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="false"/>
55
</phive>

phpstan.neon

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
parameters:
22
level: 8
3-
checkMissingIterableValueType: false
4-
checkGenericClassInNonGenericObjectType: false
53
paths:
64
- src
75
ignoreErrors:
6+
-
7+
identifier: missingType.iterableValue
8+
-
9+
identifier: missingType.generics
810
-
911
message: "#^Parameter \\#1 \\$field of method Cake\\\\Datasource\\\\EntityInterface\\:\\:get\\(\\) expects string, array\\<string\\>\\|string given\\.$#"
1012
count: 1
@@ -15,11 +17,6 @@ parameters:
1517
count: 1
1618
path: src/File/Writer/DefaultWriter.php
1719

18-
-
19-
message: "#^Parameter \\#1 \\$key of method Cake\\\\ORM\\\\Behavior\\:\\:setConfig\\(\\) expects array\\<string, mixed\\>\\|string, array\\<int\\|string, mixed\\> given\\.$#"
20-
count: 1
21-
path: src/Model/Behavior/UploadBehavior.php
22-
2320
-
2421
message: "#^Cannot use array destructuring on array\\<int\\|string, int\\|string\\>\\|false\\.$#"
2522
count: 4

0 commit comments

Comments
 (0)