-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #300 from cakephp/3.x-update-stan
update stan
- Loading branch information
Showing
8 changed files
with
50 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.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"/> | ||
<phar name="phpstan" version="2.0.1" installed="2.0.1" location="./tools/phpstan" copy="false"/> | ||
<phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="false"/> | ||
</phive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: '#^Creating callable from array\{mixed, non\-falsy\-string\} but it might not be a callable\.$#' | ||
identifier: callable.nonCallable | ||
count: 2 | ||
path: src/AuthorizationService.php | ||
|
||
- | ||
message: '#^Method Authorization\\Controller\\Component\\AuthorizationComponent\:\:can\(\) should return bool but returns Authorization\\Policy\\ResultInterface\|bool\.$#' | ||
identifier: return.type | ||
count: 1 | ||
path: src/Controller/Component/AuthorizationComponent.php | ||
|
||
- | ||
message: '#^Method Authorization\\Controller\\Component\\AuthorizationComponent\:\:canResult\(\) should return Authorization\\Policy\\ResultInterface but returns Authorization\\Policy\\ResultInterface\|bool\.$#' | ||
identifier: return.type | ||
count: 1 | ||
path: src/Controller/Component/AuthorizationComponent.php | ||
|
||
- | ||
message: '#^Cannot call method getIdentifier\(\) on array\|Authentication\\IdentityInterface\.$#' | ||
identifier: method.nonObject | ||
count: 1 | ||
path: src/Identity.php | ||
|
||
- | ||
message: '#^Cannot call method getOriginalData\(\) on array\|Authentication\\IdentityInterface\.$#' | ||
identifier: method.nonObject | ||
count: 1 | ||
path: src/Identity.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: 6 | ||
level: 7 | ||
treatPhpDocTypesAsCertain: false | ||
paths: | ||
- src/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="5.20.0@3f284e96c9d9be6fe6b15c79416e1d1903dcfef4"> | ||
<file src="src/Command/PolicyCommand.php"> | ||
<RiskyTruthyFalsyComparison> | ||
<code>!$name</code> | ||
</RiskyTruthyFalsyComparison> | ||
</file> | ||
<file src="src/IdentityDecorator.php"> | ||
<RiskyTruthyFalsyComparison> | ||
<code><![CDATA[$this->identity]]></code> | ||
</RiskyTruthyFalsyComparison> | ||
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0"> | ||
<file src="src/Controller/Component/AuthorizationComponent.php"> | ||
<InvalidReturnStatement> | ||
<code><![CDATA[$this->performCheck($resource, $action)]]></code> | ||
<code><![CDATA[$this->performCheck($resource, $action, 'canResult')]]></code> | ||
</InvalidReturnStatement> | ||
<InvalidReturnType> | ||
<code><![CDATA[\Authorization\Policy\ResultInterface]]></code> | ||
<code><![CDATA[bool]]></code> | ||
</InvalidReturnType> | ||
</file> | ||
</files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters