-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix code style of ProblemExceptionNormalizer
- Loading branch information
1 parent
0b92d23
commit 2d40bee
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
@@ -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); | ||
} | ||
|