Skip to content

Commit 23f2286

Browse files
author
Elliot Bruneel
committed
chore: update phpstan version and regenerate baseline
1 parent b24586b commit 23f2286

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"doctrine/coding-standard": "^9.0.2 || ^14.0",
5555
"phpbench/phpbench": "^0.16.10 || ^1.0",
5656
"phpstan/extension-installer": "~1.1.0 || ^1.4",
57-
"phpstan/phpstan": "~1.4.10 || 2.1.22",
57+
"phpstan/phpstan": "~1.4.10 || 2.1.23",
5858
"phpstan/phpstan-deprecation-rules": "^1 || ^2",
5959
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6",
6060
"psr/log": "^1 || ^2 || ^3",

phpstan-baseline.neon

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,12 @@ parameters:
10561056
count: 1
10571057
path: src/Internal/HydrationCompleteHandler.php
10581058

1059+
-
1060+
message: '#^Offset int\|null might not exist on array\<int, object\>\.$#'
1061+
identifier: offsetAccess.notFound
1062+
count: 1
1063+
path: src/Internal/StronglyConnectedComponents.php
1064+
10591065
-
10601066
message: '#^Property Doctrine\\ORM\\Internal\\StronglyConnectedComponents\:\:\$representingNodes \(array\<int, object\>\) does not accept array\<int\|string, object\>\.$#'
10611067
identifier: assign.propertyType
@@ -3594,7 +3600,7 @@ parameters:
35943600
-
35953601
message: '#^Property Doctrine\\ORM\\Query\\Filter\\SQLFilter\:\:\$parameters \(array\<string, array\{type\: string, value\: mixed, is_list\: bool\}\>\) does not accept non\-empty\-array\<string, array\{value\: mixed, type\: int\|string, is_list\: bool\}\>\.$#'
35963602
identifier: assign.propertyType
3597-
count: 1
3603+
count: 2
35983604
path: src/Query/Filter/SQLFilter.php
35993605

36003606
-
@@ -4173,12 +4179,6 @@ parameters:
41734179
count: 1
41744180
path: src/Tools/Console/Command/ConvertMappingCommand.php
41754181

4176-
-
4177-
message: '#^Parameter \#2 \$destPath of method Doctrine\\ORM\\Tools\\Console\\Command\\ConvertMappingCommand\:\:getExporter\(\) expects string, string\|false given\.$#'
4178-
identifier: argument.type
4179-
count: 1
4180-
path: src/Tools/Console/Command/ConvertMappingCommand.php
4181-
41824182
-
41834183
message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$#'
41844184
identifier: property.notFound
@@ -4203,12 +4203,6 @@ parameters:
42034203
count: 1
42044204
path: src/Tools/Console/Command/GenerateEntitiesCommand.php
42054205

4206-
-
4207-
message: '#^Parameter \#2 \$outputDirectory of method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generate\(\) expects string, string\|false given\.$#'
4208-
identifier: argument.type
4209-
count: 1
4210-
path: src/Tools/Console/Command/GenerateEntitiesCommand.php
4211-
42124206
-
42134207
message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$#'
42144208
identifier: property.notFound
@@ -4227,12 +4221,6 @@ parameters:
42274221
count: 1
42284222
path: src/Tools/Console/Command/GenerateProxiesCommand.php
42294223

4230-
-
4231-
message: '#^Parameter \#2 \$proxyDir of method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:generateProxyClasses\(\) expects string\|null, string\|false given\.$#'
4232-
identifier: argument.type
4233-
count: 1
4234-
path: src/Tools/Console/Command/GenerateProxiesCommand.php
4235-
42364224
-
42374225
message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$customRepositoryClassName\.$#'
42384226
identifier: property.notFound
@@ -4251,12 +4239,6 @@ parameters:
42514239
count: 1
42524240
path: src/Tools/Console/Command/GenerateRepositoriesCommand.php
42534241

4254-
-
4255-
message: '#^Parameter \#2 \$outputDirectory of method Doctrine\\ORM\\Tools\\EntityRepositoryGenerator\:\:writeEntityRepositoryClass\(\) expects string, string\|false given\.$#'
4256-
identifier: argument.type
4257-
count: 1
4258-
path: src/Tools/Console/Command/GenerateRepositoriesCommand.php
4259-
42604242
-
42614243
message: '#^Method Doctrine\\ORM\\Tools\\Console\\Command\\MappingDescribeCommand\:\:formatMappings\(\) has parameter \$propertyMappings with no value type specified in iterable type array\.$#'
42624244
identifier: missingType.iterableValue

src/Persisters/Entity/BasicEntityPersister.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,6 @@ public function getSelectConditionStatementSQL($field, $value, $assoc = null, $c
17651765

17661766
$in = $column . ' ' . sprintf(self::$comparisonMap[$comparison], $placeholders);
17671767

1768-
// @phpstan-ignore if.alwaysTrue (false positive)
17691768
if ($nullKeys) {
17701769
if ($nonNullValues) {
17711770
$selectedColumns[] = sprintf('(%s OR %s IS NULL)', $in, $column);

0 commit comments

Comments
 (0)