Skip to content

Commit

Permalink
Fix code style of ProblemExceptionNormalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
niels-nijens committed Apr 9, 2024
1 parent 0b92d23 commit 2d40bee
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@

namespace Nijens\OpenapiBundle\ExceptionHandling\Normalizer;

use Nijens\OpenapiBundle\ExceptionHandling\Exception\ProblemExceptionInterface;
use ArrayObject;
use Nijens\OpenapiBundle\NijensOpenapiBundle;
use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
use Throwable;

/**
/*
* Normalizes a {@see Throwable} implementing the {@see ProblemExceptionInterface}.
*
* @author Niels Nijens <[email protected]>
Expand All @@ -29,15 +28,15 @@ final class ProblemExceptionNormalizer extends AbstractProblemExceptionNormalize
/**
* @return array
*/
public function normalize($object, $format = null, array $context = []): float|int|bool|\ArrayObject|array|string|null
public function normalize($object, $format = null, array $context = [])
{
return $this->doNormalize($object, $format, $context);
}
}
} else {
final class ProblemExceptionNormalizer extends AbstractProblemExceptionNormalizer implements NormalizerInterface, NormalizerAwareInterface
{
public function normalize($object, $format = null, array $context = []): array
public function normalize($object, $format = null, array $context = []): float|int|bool|ArrayObject|array|string|null
{
return $this->doNormalize($object, $format, $context);
}
Expand Down

0 comments on commit 2d40bee

Please sign in to comment.