Skip to content

Commit 855ae10

Browse files
authored
Merge pull request #1014 from cakephp/update-stan
update stan
2 parents 060f203 + f6b41c3 commit 855ae10

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
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.56" installed="1.10.56" location="./tools/phpstan" copy="false"/>
4-
<phar name="psalm" version="5.20.0" installed="5.20.0" location="./tools/psalm" copy="false"/>
3+
<phar name="phpstan" version="1.11.9" installed="1.11.9" location="./tools/phpstan" copy="false"/>
4+
<phar name="psalm" version="5.25.0" installed="5.25.0" location="./tools/psalm" copy="false"/>
55
</phive>

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Call to function file_get_contents\\(\\) on a separate line has no effect\\.$#"
5-
count: 1
6-
path: src/Command/BenchmarkCommand.php
7-
83
-
94
message: "#^Method DebugKit\\\\Mailer\\\\Transport\\\\DebugKitTransport\\:\\:send\\(\\) should return array\\{headers\\: string, message\\: string\\} but returns array\\{headers\\: non\\-empty\\-array\\<string\\>, message\\: array\\{text\\: string, html\\: string\\}\\}\\.$#"
105
count: 1

phpstan.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ includes:
33

44
parameters:
55
level: 6
6-
checkMissingIterableValueType: false
7-
checkGenericClassInNonGenericObjectType: false
86
treatPhpDocTypesAsCertain: false
97
bootstrapFiles:
108
- tests/bootstrap.php
119
paths:
1210
- src/
11+
ignoreErrors:
12+
- identifier: missingType.generics
13+
- identifier: missingType.iterableValue
14+

src/View/Helper/CredentialsHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function filter(mixed $in): mixed
5050
return $in;
5151
}
5252
preg_match_all($regexp, $in, $tokens);
53-
if (empty($tokens[0])) {
53+
if ($tokens[0] === []) {
5454
return h($in);
5555
}
5656
$protocol = Hash::get($tokens, '1.0');

0 commit comments

Comments
 (0)