Skip to content

Commit 0a6488a

Browse files
committed
Fix stan errors
1 parent 544cfcc commit 0a6488a

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

phpstan-baseline.neon

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
parameters:
22
ignoreErrors:
3+
-
4+
identifier: missingType.iterableValue
35
-
46
message: "#^Call to an undefined method Crud\\\\Action\\\\BaseAction\\:\\:findMethod\\(\\)\\.$#"
57
count: 2
@@ -19,8 +21,3 @@ parameters:
1921
message: "#^Access to an undefined property Cake\\\\Controller\\\\Controller\\:\\:\\$Crud\\.$#"
2022
count: 1
2123
path: src/Core/BaseObject.php
22-
23-
-
24-
message: "#^Call to an undefined method Cake\\\\Controller\\\\Controller\\:\\:setViewClasses\\(\\)\\.$#"
25-
count: 1
26-
path: src/Listener/ApiListener.php

phpstan.neon

-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ parameters:
55
level: 6
66
paths:
77
- src
8-
checkMissingIterableValueType: false
9-
checkGenericClassInNonGenericObjectType: false
108
excludePaths:
119
- */src/TestSuite/*
1210
universalObjectCratesClasses:
1311
- Crud\Event\Subject
14-
bootstrapFiles:
15-
- vendor/cakephp/cakephp/src/Core/Exception/CakeException.php

psalm-baseline.xml

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<files psalm-version="4.x-dev@">
3-
<file src="src/Listener/ApiListener.php">
4-
<UndefinedMethod occurrences="1">
5-
<code>setViewClasses</code>
6-
</UndefinedMethod>
7-
</file>
83
<file src="src/Listener/ApiQueryLogListener.php">
94
<InternalMethod occurrences="1">
105
<code>new QueryLogger()</code>

src/Core/BaseObject.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function implementedEvents(): array
6060
/**
6161
* Convenient method for Request::is
6262
*
63-
* @param array|string $method Method(s) to check for
63+
* @param list<string>|string $method Method(s) to check for
6464
* @return bool
6565
*/
6666
protected function _checkRequestType(array|string $method): bool

0 commit comments

Comments
 (0)