Skip to content

Commit

Permalink
Psalm 4.24.0, PHPStan 1.7.15 (#9865)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Jun 28, 2022
1 parent b9f2488 commit 278bf19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
"doctrine/annotations": "^1.13",
"doctrine/coding-standard": "^9.0",
"phpbench/phpbench": "^0.16.10 || ^1.0",
"phpstan/phpstan": "~1.4.10 || 1.7.14",
"phpstan/phpstan": "~1.4.10 || 1.7.15",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"psr/log": "^1 || ^2 || ^3",
"squizlabs/php_codesniffer": "3.7.1",
"symfony/cache": "^4.4 || ^5.4 || ^6.0",
"symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0",
"vimeo/psalm": "4.23.0"
"vimeo/psalm": "4.24.0"
},
"conflict": {
"doctrine/annotations": "<1.13 || >= 2.0"
Expand Down
25 changes: 12 additions & 13 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.23.0@f1fe6ff483bf325c803df9f510d09a03fd796f88">
<files psalm-version="4.24.0@06dd975cb55d36af80f242561738f16c5f58264f">
<file src="lib/Doctrine/ORM/AbstractQuery.php">
<DeprecatedClass occurrences="1">
<code>IterableResult</code>
Expand Down Expand Up @@ -569,15 +569,20 @@
<code>protected function _validateAndCompleteManyToManyMapping(array $mapping)</code>
<code>protected function _validateAndCompleteOneToOneMapping(array $mapping)</code>
</InvalidDocblock>
<InvalidNullableReturnType occurrences="3">
<InvalidNullableReturnType occurrences="2">
<code>ReflectionProperty</code>
<code>ReflectionProperty</code>
<code>getReflectionClass</code>
</InvalidNullableReturnType>
<InvalidPropertyAssignmentValue occurrences="2">
<code>$definition</code>
<code>$this-&gt;subClasses</code>
</InvalidPropertyAssignmentValue>
<InvalidReturnStatement occurrences="1">
<code>$this-&gt;reflClass</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>getReflectionClass</code>
</InvalidReturnType>
<LessSpecificReturnStatement occurrences="4">
<code>$cache</code>
<code>$className</code>
Expand Down Expand Up @@ -772,8 +777,8 @@
<code>assert($property instanceof ReflectionProperty)</code>
</RedundantCondition>
<RedundantConditionGivenDocblockType occurrences="2">
<code>assert($cacheAttribute instanceof Mapping\Cache)</code>
<code>$metadata-&gt;getReflectionClass()</code>
<code>assert($cacheAttribute instanceof Mapping\Cache)</code>
</RedundantConditionGivenDocblockType>
</file>
<file src="lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php">
Expand Down Expand Up @@ -2568,7 +2573,8 @@
</RedundantConditionGivenDocblockType>
</file>
<file src="lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php">
<InvalidReturnStatement occurrences="1">
<InvalidReturnStatement occurrences="2">
<code>$this-&gt;repositoryList[$repositoryHash]</code>
<code>$this-&gt;repositoryList[$repositoryHash] = $this-&gt;createRepository($entityManager, $entityName)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
Expand Down Expand Up @@ -2782,12 +2788,6 @@
<InvalidDocblock occurrences="1">
<code>public function setFieldVisibility($visibility)</code>
</InvalidDocblock>
<MissingParamType occurrences="1">
<code>$visibility</code>
</MissingParamType>
<MissingReturnType occurrences="1">
<code>setFieldVisibility</code>
</MissingReturnType>
<PossiblyFalseArgument occurrences="2">
<code>$last</code>
<code>strrpos($metadata-&gt;name, '\\')</code>
Expand Down Expand Up @@ -3137,8 +3137,7 @@
<code>setValue</code>
<code>setValue</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="4">
<code>addPropertyChangedListener</code>
<PossiblyUndefinedMethod occurrences="3">
<code>unwrap</code>
<code>unwrap</code>
<code>unwrap</code>
Expand Down

0 comments on commit 278bf19

Please sign in to comment.