Skip to content

Commit

Permalink
Merge pull request #1014 from cakephp/update-stan
Browse files Browse the repository at this point in the history
update stan
  • Loading branch information
dereuromark authored Aug 8, 2024
2 parents 060f203 + f6b41c3 commit 855ae10
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="1.10.56" installed="1.10.56" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="5.20.0" installed="5.20.0" location="./tools/psalm" copy="false"/>
<phar name="phpstan" version="1.11.9" installed="1.11.9" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="5.25.0" installed="5.25.0" location="./tools/psalm" copy="false"/>
</phive>
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Call to function file_get_contents\\(\\) on a separate line has no effect\\.$#"
count: 1
path: src/Command/BenchmarkCommand.php

-
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\\}\\}\\.$#"
count: 1
Expand Down
6 changes: 4 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ includes:

parameters:
level: 6
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
treatPhpDocTypesAsCertain: false
bootstrapFiles:
- tests/bootstrap.php
paths:
- src/
ignoreErrors:
- identifier: missingType.generics
- identifier: missingType.iterableValue

2 changes: 1 addition & 1 deletion src/View/Helper/CredentialsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function filter(mixed $in): mixed
return $in;
}
preg_match_all($regexp, $in, $tokens);
if (empty($tokens[0])) {
if ($tokens[0] === []) {
return h($in);
}
$protocol = Hash::get($tokens, '1.0');
Expand Down

0 comments on commit 855ae10

Please sign in to comment.