Skip to content

Commit

Permalink
Merge pull request #8635 from greg0ire/2.9.x
Browse files Browse the repository at this point in the history
Manually merge 2.8.x into 2.9.x
  • Loading branch information
greg0ire authored Apr 17, 2021
2 parents f8e06ad + 1ea51d8 commit 261a405
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
},
"require-dev": {
"doctrine/coding-standard": "^9.0",
"phpstan/phpstan": "^0.12.18",
"phpstan/phpstan": "^0.12.83",
"phpunit/phpunit": "^8.5|^9.4",
"squizlabs/php_codesniffer": "3.6.0",
"symfony/yaml": "^3.4|^4.0|^5.0",
"vimeo/psalm": "4.3.2"
"vimeo/psalm": "4.7.0"
},
"suggest": {
"symfony/yaml": "If you want to use YAML Metadata Mapping Driver"
Expand Down
10 changes: 10 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,16 @@ parameters:
count: 1
path: lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php

-
message: "#^Call to an undefined method ReflectionProperty\\:\\:getType\\(\\)\\.$#"
count: 2
path: lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php

-
message: "#^Call to an undefined method ReflectionProperty\\:\\:hasType\\(\\)\\.$#"
count: 1
path: lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php

-
message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\NamingStrategy\\:\\:joinColumnName\\(\\) invoked with 2 parameters, 1 required\\.$#"
count: 2
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ parameters:
earlyTerminatingMethodCalls:
Doctrine\ORM\Query\Parser:
- syntaxError
phpVersion: 70200
13 changes: 5 additions & 8 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.3.2@57b53ff26237074fdf5cbcb034f7da5172be4524">
<files psalm-version="4.7.0@d4377c0baf3ffbf0b1ec6998e8d1be2a40971005">
<file src="lib/Doctrine/ORM/AbstractQuery.php">
<FalsableReturnStatement occurrences="1">
<code>! $filteredParameters-&gt;isEmpty() ? $filteredParameters-&gt;first() : null</code>
Expand Down Expand Up @@ -346,6 +346,9 @@
</FalsableReturnStatement>
</file>
<file src="lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php">
<InvalidArgument occurrences="1">
<code>$hints</code>
</InvalidArgument>
<InvalidNullableReturnType occurrences="2">
<code>loadById</code>
<code>loadOneToOneEntity</code>
Expand All @@ -369,9 +372,6 @@
<code>$paramMappings</code>
<code>$sqlPositions</code>
</InvalidArgument>
<InvalidArrayOffset occurrences="1">
<code>$value[$i % $countValue]</code>
</InvalidArrayOffset>
<LessSpecificImplementedReturnType occurrences="1">
<code>mixed</code>
</LessSpecificImplementedReturnType>
Expand Down Expand Up @@ -558,13 +558,10 @@
<NullableReturnStatement occurrences="1">
<code>$this-&gt;identityMap[$rootClassName][$idHash]</code>
</NullableReturnStatement>
<UndefinedInterfaceMethod occurrences="6">
<UndefinedInterfaceMethod occurrences="3">
<code>getMapping</code>
<code>getMapping</code>
<code>takeSnapshot</code>
<code>unwrap</code>
<code>unwrap</code>
<code>unwrap</code>
</UndefinedInterfaceMethod>
</file>
</files>

0 comments on commit 261a405

Please sign in to comment.