Skip to content

Commit c814250

Browse files
chore: bump phpstan version (#7239)
1 parent a550050 commit c814250

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/Metadata/Property/Factory/SchemaPropertyMetadataFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testEnumLegacy(): void
4343
public function testEnum(): void
4444
{
4545
$resourceClassResolver = $this->createMock(ResourceClassResolverInterface::class);
46-
$apiProperty = new ApiProperty(nativeType: Type::nullable(Type::enum(IntEnumAsIdentifier::class))); // @phpstan-ignore-line
46+
$apiProperty = new ApiProperty(nativeType: Type::nullable(Type::enum(IntEnumAsIdentifier::class)));
4747
$decorated = $this->createMock(PropertyMetadataFactoryInterface::class);
4848
$decorated->expects($this->once())->method('create')->with(DummyWithEnum::class, 'intEnumAsIdentifier')->willReturn($apiProperty);
4949
$schemaPropertyMetadataFactory = new SchemaPropertyMetadataFactory($resourceClassResolver, $decorated);
@@ -71,7 +71,7 @@ public function testWithCustomOpenApiContext(): void
7171
{
7272
$resourceClassResolver = $this->createMock(ResourceClassResolverInterface::class);
7373
$apiProperty = new ApiProperty(
74-
nativeType: Type::nullable(Type::enum(IntEnumAsIdentifier::class)), // @phpstan-ignore-line
74+
nativeType: Type::nullable(Type::enum(IntEnumAsIdentifier::class)),
7575
openapiContext: ['type' => 'object', 'properties' => ['alpha' => ['type' => 'integer']]],
7676
);
7777
$decorated = $this->createMock(PropertyMetadataFactoryInterface::class);

Tests/SchemaFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public function testBuildSchemaForNonResourceClassWithUnionIntersectTypes(): voi
277277
$propertyMetadataFactoryProphecy = $this->prophesize(PropertyMetadataFactoryInterface::class);
278278
$propertyMetadataFactoryProphecy->create(NotAResourceWithUnionIntersectTypes::class, 'ignoredProperty', Argument::cetera())->willReturn(
279279
(new ApiProperty())
280-
->withNativeType(Type::nullable(Type::string())) // @phpstan-ignore-line
280+
->withNativeType(Type::nullable(Type::string()))
281281
->withReadable(true)
282282
->withSchema(['type' => ['string', 'null']])
283283
);

0 commit comments

Comments
 (0)