Skip to content

Commit 6d48c03

Browse files
committed
Fix build
1 parent e3fcea1 commit 6d48c03

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ parameters:
1111
- tests/*/data/*
1212

1313
ignoreErrors:
14-
- '~^Parameter \#1 \$node \(.*\) of method .*Rule::processNode\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method PHPStan\\Rules\\Rule::processNode\(\)$~'
1514
-
1615
message: '~^Variable method call on Doctrine\\ORM\\QueryBuilder~'
1716
path: src/Type/Doctrine/QueryBuilder/QueryBuilderGetQueryDynamicReturnTypeExtension.php

src/Rules/Doctrine/ORM/EntityColumnRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public function processNode(Node $node, Scope $scope): array
6262
return [];
6363
}
6464

65-
/** @var \Doctrine\ORM\Mapping\ClassMetadataInfo $metadata */
6665
$metadata = $objectManager->getClassMetadata($className);
6766
$classMetadataInfo = 'Doctrine\ORM\Mapping\ClassMetadataInfo';
6867
if (!$metadata instanceof $classMetadataInfo) {

src/Rules/Doctrine/ORM/EntityRelationRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public function processNode(Node $node, Scope $scope): array
5050
return [];
5151
}
5252

53-
/** @var \Doctrine\ORM\Mapping\ClassMetadataInfo $metadata */
5453
$metadata = $objectManager->getClassMetadata($className);
5554
$classMetadataInfo = 'Doctrine\ORM\Mapping\ClassMetadataInfo';
5655
if (!$metadata instanceof $classMetadataInfo) {

tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,17 @@ public function testSuperclass(): void
8585

8686
/**
8787
* @dataProvider generatedIdsProvider
88+
* @param string $file
89+
* @param mixed[] $expectedErrors
8890
*/
8991
public function testGeneratedIds(string $file, array $expectedErrors): void
9092
{
9193
$this->analyse([$file], $expectedErrors);
9294
}
9395

96+
/**
97+
* @return \Iterator<string, mixed[]>
98+
*/
9499
public function generatedIdsProvider(): Iterator
95100
{
96101
yield 'not nullable' => [__DIR__ . '/data/GeneratedIdEntity1.php', []];

tests/Rules/Doctrine/ORM/EntityRelationRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ protected function getRule(): Rule
2222

2323
/**
2424
* @dataProvider ruleProvider
25+
* @param string $file
26+
* @param mixed[] $expectedErrors
2527
*/
2628
public function testRule(string $file, array $expectedErrors): void
2729
{
2830
$this->analyse([$file], $expectedErrors);
2931
}
3032

33+
/**
34+
* @return \Iterator<string, mixed[]>
35+
*/
3136
public function ruleProvider(): Iterator
3237
{
3338
yield 'nice entity' => [__DIR__ . '/data/EntityWithRelations.php', []];

0 commit comments

Comments
 (0)