mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-16 02:47:45 +00:00
fix CS
This commit is contained in:
@@ -62,7 +62,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
$attributes = \array_filter(
|
||||
$metadata->getAttributesMetadata(),
|
||||
static function (AttributeMetadataInterface $a) use ($expectedGroups) {
|
||||
return array_any($a->getGroups(), fn($g) => \in_array($g, $expectedGroups, true));
|
||||
return array_any($a->getGroups(), fn ($g) => \in_array($g, $expectedGroups, true));
|
||||
}
|
||||
);
|
||||
|
||||
@@ -147,7 +147,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
// add a discriminator
|
||||
if (null !== $discriminator = $metadata->getClassDiscriminatorMapping()) {
|
||||
$typeKey = $discriminator->getTypeProperty();
|
||||
$typeValue = array_find_key($discriminator->getTypesMapping(), fn($typeClass) => $typeClass === $context['docgen:expects']);
|
||||
$typeValue = array_find_key($discriminator->getTypesMapping(), fn ($typeClass) => $typeClass === $context['docgen:expects']);
|
||||
|
||||
if (null === $typeValue) {
|
||||
$typeKey = null;
|
||||
|
||||
@@ -115,7 +115,8 @@ class OnGenerationFailsTest extends TestCase
|
||||
if (!$arg instanceof Email) {
|
||||
return false;
|
||||
}
|
||||
return array_any($arg->getTo(), fn($to) => 'test@test.com' === $to->getAddress());
|
||||
|
||||
return array_any($arg->getTo(), fn ($to) => 'test@test.com' === $to->getAddress());
|
||||
}),
|
||||
Argument::any()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user