Skip to content

Commit e4b2878

Browse files
committed
Fixed PHPStan type issues
1 parent fa5cfa5 commit e4b2878

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/Repository/Interfaces/BaseRepositoryInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public function findOneBy(array $criteria, ?array $orderBy = null): ?object;
107107
*
108108
* @psalm-param array<string, mixed> $criteria
109109
* @psalm-param array<string, string>|null $orderBy
110+
* @phpstan-param array<string, 'asc'|'desc'|'ASC'|'DESC'>|null $orderBy
110111
*
111112
* @psalm-return list<object|EntityInterface>
112113
*/

tests/Integration/Doctrine/DBAL/Types/UTCDateTimeTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public function testDateTimeConvertsToPHPValue(string $expected, string | DateTi
8282

8383
$date = $type->convertToPHPValue($value, $platform);
8484

85-
self::assertInstanceOf(DateTime::class, $date);
8685
self::assertSame($expected, $date->format('Y-m-d H:i:s'));
8786
}
8887

tests/Integration/Repository/GenericRepositoryTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@ public function testThatGetAssociationsReturnsExpected(): void
6767
);
6868
}
6969

70-
/**
71-
* @throws Throwable
72-
*/
73-
public function testThatGetClassMetaDataReturnsExpected(): void
74-
{
75-
$resource = self::getContainer()->get(ApiKeyResource::class);
76-
77-
self::assertInstanceOf(ClassMetadata::class, $resource->getRepository()->getClassMetaData());
78-
}
79-
8070
/**
8171
* @throws Throwable
8272
*/

0 commit comments

Comments
 (0)