|
22 | 22 | use ApiPlatform\Metadata\IriConverterInterface; |
23 | 23 | use ApiPlatform\Metadata\Operations; |
24 | 24 | use ApiPlatform\Metadata\Post; |
25 | | -use ApiPlatform\Metadata\Patch; |
26 | 25 | use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface; |
27 | 26 | use ApiPlatform\Metadata\Resource\ResourceMetadataCollection; |
28 | 27 | use ApiPlatform\Metadata\ResourceClassResolverInterface; |
@@ -507,7 +506,7 @@ public function testNormalizeCollectionWithHydraOperations(): void |
507 | 506 | $this->assertIsArray($actual['supportedOperation']); |
508 | 507 | $this->assertNotEmpty($actual['supportedOperation']); |
509 | 508 |
|
510 | | - $methods = array_map(fn($op) => $op['method'] ?? null, $actual['supportedOperation']); |
| 509 | + $methods = array_map(static fn ($op) => $op['method'] ?? null, $actual['supportedOperation']); |
511 | 510 | $this->assertContains('GET', $methods); |
512 | 511 | $this->assertContains('POST', $methods); |
513 | 512 |
|
@@ -576,7 +575,7 @@ public function testNormalizeCollectionWithMultipleApiResourcesAndHydraOperation |
576 | 575 |
|
577 | 576 | $this->assertCount(2, $actual['supportedOperation']); |
578 | 577 |
|
579 | | - $methods = array_map(fn($op) => $op['method'] ?? null, $actual['supportedOperation']); |
| 578 | + $methods = array_map(static fn ($op) => $op['method'] ?? null, $actual['supportedOperation']); |
580 | 579 | $this->assertContains('GET', $methods); |
581 | 580 | $this->assertContains('POST', $methods); |
582 | 581 |
|
|
0 commit comments