Skip to content

Commit 3e8dab2

Browse files
committed
lint fix
1 parent 4dd9d2b commit 3e8dab2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Serializer/Tests/AbstractItemNormalizerTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ public function testDenormalizeWithSecuredPropertyAndThrowOnAccessDeniedExtraPro
343343
SecuredDummy::class,
344344
'is_granted(\'ROLE_ADMIN\')',
345345
Argument::that(function (array $context) {
346-
return array_key_exists('property', $context)
347-
&& array_key_exists('object', $context)
348-
&& array_key_exists('previous_object', $context)
346+
return \array_key_exists('property', $context)
347+
&& \array_key_exists('object', $context)
348+
&& \array_key_exists('previous_object', $context)
349349
&& $context['property'] === 'adminOnlyProperty'
350350
&& $context['previous_object'] === null
351351
&& $context['object'] instanceof SecuredDummy;
@@ -396,9 +396,9 @@ public function testDenormalizeWithSecuredPropertyAndThrowOnAccessDeniedExtraPro
396396
SecuredDummy::class,
397397
'is_granted(\'ROLE_ADMIN\')',
398398
Argument::that(function (array $context) {
399-
return array_key_exists('property', $context)
400-
&& array_key_exists('object', $context)
401-
&& array_key_exists('previous_object', $context)
399+
return \array_key_exists('property', $context)
400+
&& \array_key_exists('object', $context)
401+
&& \array_key_exists('previous_object', $context)
402402
&& $context['property'] === 'adminOnlyProperty'
403403
&& $context['previous_object'] === null
404404
&& $context['object'] instanceof SecuredDummy;
@@ -414,7 +414,7 @@ public function testDenormalizeWithSecuredPropertyAndThrowOnAccessDeniedExtraPro
414414
$operation = new Patch(securityMessage: 'Custom access denied message', extraProperties: ['throw_on_access_denied' => true]);
415415

416416
$normalizer->denormalize($data, SecuredDummy::class, 'json', [
417-
'operation' => $operation
417+
'operation' => $operation,
418418
]);
419419
}
420420

@@ -453,9 +453,9 @@ public function testDenormalizeWithSecuredPropertyAndThrowOnAccessDeniedExtraPro
453453
SecuredDummy::class,
454454
'is_granted(\'ROLE_ADMIN\')',
455455
Argument::that(function (array $context) {
456-
return array_key_exists('property', $context)
457-
&& array_key_exists('object', $context)
458-
&& array_key_exists('previous_object', $context)
456+
return \array_key_exists('property', $context)
457+
&& \array_key_exists('object', $context)
458+
&& \array_key_exists('previous_object', $context)
459459
&& $context['property'] === 'adminOnlyProperty'
460460
&& $context['previous_object'] === null
461461
&& $context['object'] instanceof SecuredDummy;
@@ -471,7 +471,7 @@ public function testDenormalizeWithSecuredPropertyAndThrowOnAccessDeniedExtraPro
471471
$operation = new Patch(extraProperties: ['throw_on_access_denied' => true]);
472472

473473
$normalizer->denormalize($data, SecuredDummy::class, 'json', [
474-
'operation' => $operation
474+
'operation' => $operation,
475475
]);
476476
}
477477

0 commit comments

Comments
 (0)