Skip to content

Commit

Permalink
Merge branch '2.15.x' into 3.0.x
Browse files Browse the repository at this point in the history
* 2.15.x:
  PHPStan 1.9.5 (#10359)
  Drop doctrine/lexer 1
  • Loading branch information
derrabus committed Jan 2, 2023
2 parents 8b35dae + c9c4203 commit 8b1c353
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -38,7 +38,7 @@
"require-dev": {
"doctrine/coding-standard": "^11.0",
"phpbench/phpbench": "^1.0 || dev-master",
"phpstan/phpstan": "1.9.4",
"phpstan/phpstan": "1.9.5",
"phpunit/phpunit": "^9.5.28@dev",
"psr/log": "^1 || ^2 || ^3",
"squizlabs/php_codesniffer": "3.7.1",
Expand Down
3 changes: 2 additions & 1 deletion lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php
Expand Up @@ -559,7 +559,8 @@ private function getGeneratedMode(string $generatedMode): int
/**
* Parses the given method.
*
* @return callable[]
* @return list<array{string, string}>
* @psalm-return list<array{string, (Events::*)}>
*/
private function getMethodCallbacks(ReflectionMethod $method): array
{
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Expand Up @@ -370,11 +370,6 @@ parameters:
count: 1
path: lib/Doctrine/ORM/UnitOfWork.php

-
message: "#^Parameter \\#3 \\$collection of class Doctrine\\\\ORM\\\\PersistentCollection constructor expects Doctrine\\\\Common\\\\Collections\\\\Collection\\<\\(int\\|string\\), mixed\\>&Doctrine\\\\Common\\\\Collections\\\\Selectable\\<\\(int\\|string\\), mixed\\>, Doctrine\\\\Common\\\\Collections\\\\Collection given\\.$#"
count: 1
path: lib/Doctrine/ORM/UnitOfWork.php

-
message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$name\\.$#"
count: 1
Expand Down
6 changes: 0 additions & 6 deletions psalm-baseline.xml
Expand Up @@ -525,12 +525,6 @@
</file>
<file src="lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php">
<InvalidArgument occurrences="1"/>
<InvalidArrayAccess occurrences="4">
<code>$value[0]</code>
<code>$value[0]</code>
<code>$value[1]</code>
<code>$value[1]</code>
</InvalidArrayAccess>
<LessSpecificReturnStatement occurrences="1">
<code>$mapping</code>
</LessSpecificReturnStatement>
Expand Down

0 comments on commit 8b1c353

Please sign in to comment.