-
Notifications
You must be signed in to change notification settings - Fork 54
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 #325 from cakephp/update-tools
Upgrade phpstan/psalm
- Loading branch information
Showing
10 changed files
with
61 additions
and
50 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
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.9.12" installed="1.9.12" location="./tools/phpstan" copy="false"/> | ||
<phar name="psalm" version="5.4.0" installed="5.4.0" location="./tools/psalm" copy="false"/> | ||
<phar name="phpstan" version="2.0.1" installed="2.0.1" location="./tools/phpstan" copy="true"/> | ||
<phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="true"/> | ||
</phive> |
This file was deleted.
Oops, something went wrong.
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,16 +1,31 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Access to an undefined property Cake\\\\Datasource\\\\EntityInterface\\:\\:\\$version\\.$#" | ||
message: '#^Strict comparison using \!\=\= between string and array\{\} will always evaluate to true\.$#' | ||
identifier: notIdentical.alwaysTrue | ||
count: 1 | ||
path: src/Document.php | ||
|
||
- | ||
message: '#^Access to an undefined property Cake\\Datasource\\EntityInterface\:\:\$version\.$#' | ||
identifier: property.notFound | ||
count: 1 | ||
path: src/Index.php | ||
|
||
- | ||
message: "#^Method Cake\\\\ElasticSearch\\\\Query\\:\\:find\\(\\) should return static\\(Cake\\\\ElasticSearch\\\\Query\\<TSubject of array\\|Cake\\\\ElasticSearch\\\\Document\\>\\) but returns Cake\\\\ElasticSearch\\\\Query\\<Cake\\\\ElasticSearch\\\\Document\\>\\.$#" | ||
message: '#^Method Cake\\ElasticSearch\\Query\:\:find\(\) should return static\(Cake\\ElasticSearch\\Query\<TSubject of array\|Cake\\ElasticSearch\\Document\>\) but returns Cake\\ElasticSearch\\Query\<Cake\\ElasticSearch\\Document\>\.$#' | ||
identifier: return.type | ||
count: 1 | ||
path: src/Query.php | ||
|
||
- | ||
message: "#^PHPDoc tag @return with type Cake\\\\ElasticSearch\\\\Query\\<TSubject of array\\|Cake\\\\ElasticSearch\\\\Document\\> is not subtype of native type static\\(Cake\\\\ElasticSearch\\\\Query\\<TSubject of array\\|Cake\\\\ElasticSearch\\\\Document\\>\\)\\.$#" | ||
message: '#^PHPDoc tag @return with type Cake\\ElasticSearch\\Query\<TSubject of array\|Cake\\ElasticSearch\\Document\> is not subtype of native type static\(Cake\\ElasticSearch\\Query\<TSubject of array\|Cake\\ElasticSearch\\Document\>\)\.$#' | ||
identifier: return.phpDocType | ||
count: 1 | ||
path: src/Query.php | ||
|
||
- | ||
message: '#^Strict comparison using \!\=\= between mixed and null will always evaluate to true\.$#' | ||
identifier: notIdentical.alwaysTrue | ||
count: 1 | ||
path: src/QueryBuilder.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
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,41 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="dev-master@"> | ||
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0"> | ||
<file src="src/Datasource/Connection.php"> | ||
<InvalidReturnStatement occurrences="1"> | ||
<code>$this->_client->getConfig()</code> | ||
<InvalidReturnStatement> | ||
<code><![CDATA[$this->_client->getConfig()]]></code> | ||
</InvalidReturnStatement> | ||
<InvalidReturnType occurrences="1"> | ||
<code>array</code> | ||
<InvalidReturnType> | ||
<code><![CDATA[array]]></code> | ||
</InvalidReturnType> | ||
<LessSpecificImplementedReturnType occurrences="1"> | ||
<code>array</code> | ||
<LessSpecificImplementedReturnType> | ||
<code><![CDATA[array]]></code> | ||
</LessSpecificImplementedReturnType> | ||
</file> | ||
<file src="src/Index.php"> | ||
<NoInterfaceProperties occurrences="5"> | ||
<code>$entity->version</code> | ||
<code>$entity->id</code> | ||
<code>$entity->id</code> | ||
<code>$entity->id</code> | ||
<code>$entity->id</code> | ||
<NoInterfaceProperties> | ||
<code><![CDATA[$entity->id]]></code> | ||
<code><![CDATA[$entity->id]]></code> | ||
<code><![CDATA[$entity->id]]></code> | ||
<code><![CDATA[$entity->id]]></code> | ||
<code><![CDATA[$entity->version]]></code> | ||
</NoInterfaceProperties> | ||
</file> | ||
<file src="src/Marshaller.php"> | ||
<InvalidDocblock occurrences="1"> | ||
<code>public function one(array $data, array $options = []): Document</code> | ||
</InvalidDocblock> | ||
<NoInterfaceProperties occurrences="1"> | ||
<code>$record->id</code> | ||
<NoInterfaceProperties> | ||
<code><![CDATA[$record->id]]></code> | ||
</NoInterfaceProperties> | ||
</file> | ||
<file src="src/Query.php"> | ||
<InvalidArgument occurrences="3"> | ||
<code>$query</code> | ||
<code>$query</code> | ||
<code>false</code> | ||
</InvalidArgument> | ||
<LessSpecificImplementedReturnType occurrences="1"> | ||
<code>\Traversable</code> | ||
<LessSpecificImplementedReturnType> | ||
<code><![CDATA[\Traversable]]></code> | ||
</LessSpecificImplementedReturnType> | ||
</file> | ||
<file src="src/View/Form/DocumentContext.php"> | ||
<InvalidReturnStatement> | ||
<code><![CDATA[$entity]]></code> | ||
</InvalidReturnStatement> | ||
</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