8000 Fix merge · Marion-Valls/symfony@cd4ca48 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd4ca48

Browse files
Fix merge
1 parent acb7a98 commit cd4ca48

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_almost_circular_private.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ protected static function getMonologInline_LoggerService($container)
425425
*/
426426
protected static function getPAService($container)
427427
{
428-
$a = ($container->privates['pC'] ?? $container->getPCService());
428+
$a = ($container->privates['pC'] ?? self::getPCService($container));
429429

430430
if (isset($container->services['pA'])) {
431431
return $container->services['pA'];
@@ -434,7 +434,7 @@ protected static function getPAService($container)
434434

435435
$container->services['pA'] = $instance = new \stdClass($b, $a);
436436

437-
$b->d = ($container->privates['pD'] ?? $container->getPDService());
437+
$b->d = ($container->privates['pD'] ?? self::getPDService($container));
438438

439439
return $instance;
440440
}

src/Symfony/Component/Serializer/Tests/NameConverter/MetadataAwareNameConverterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testNormalizeWithFallback($propertyName, $expected)
5858
$fallback = $this->createMock(NameConverterInterface::class);
5959
$fallback
6060
->method('normalize')
61-
->willReturnCallback(strtoupper(...))
61+
->willReturnCallback(fn ($propertyName) => strtoupper($propertyName))
6262
;
6363

6464
$nameConverter = new MetadataAwareNameConverter($classMetadataFactory, $fallback);
@@ -88,7 +88,7 @@ public function testDenormalizeWithFallback($expected, $propertyName)
8888
$fallback = $this->createMock(NameConverterInterface::class);
8989
$fallback
9090
->method('denormalize')
91-
->willReturnCallback(strtolower(...))
91+
->willReturnCallback(fn ($propertyName) => strtolower($propertyName))
9292
;
9393

9494
$nameConverter = new MetadataAwareNameConverter($classMetadataFactory, $fallback);

0 commit comments

Comments
 (0)
0