Skip to content

Commit b05b2aa

Browse files
committed
CS fixes
1 parent 2e4160c commit b05b2aa

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

tests/Doctrine/ODM/MongoDB/Tests/BaseTestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
use const DOCTRINE_MONGODB_DATABASE;
4242
use const DOCTRINE_MONGODB_SERVER;
43-
use const PHP_VERSION_ID;
4443

4544
abstract class BaseTestCase extends TestCase
4645
{
@@ -141,7 +140,7 @@ public static function assertArraySubset(array $subset, array $array, bool $chec
141140

142141
public static function isLazyObject(object $document): bool
143142
{
144-
if (PHP_VERSION_ID >= 80400 && $_ENV['USE_LAZY_GHOST_OBJECTS'] ?? false) {
143+
if ($_ENV['USE_LAZY_GHOST_OBJECTS']) {
145144
return NativeLazyObjectFactory::isLazyObject($document);
146145
}
147146

tests/Doctrine/ODM/MongoDB/Tests/Mapping/PropertyAccessors/EnumPropertyAccessorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function testEnumSetDatabaseArrayGetValue(): void
5353
class EnumClass
5454
{
5555
public EnumType $enum;
56+
57+
/** @var EnumType[] */
5658
public array $enumList;
5759
}
5860

tests/Doctrine/ODM/MongoDB/Tests/Mapping/PropertyAccessors/ObjectCastPropertyAccessorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function getProperty2(): string
5959
}
6060
}
6161

62+
/** @implements InternalProxy<object> */
6263
class ObjectClassInternalProxy implements InternalProxy
6364
{
6465
/** @var string */

tests/Doctrine/ODM/MongoDB/Tests/Mapping/PropertyAccessors/ReadOnlyAccessorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ public function testReadOnlyPropertyOnlyOnce(): void
3939

4040
class ReadOnlyClass
4141
{
42+
// @phpstan-ignore property.uninitializedReadonly
4243
public readonly int $property;
4344
}

0 commit comments

Comments
 (0)