Skip to content

Commit

Permalink
fix: adjust serializer types for Symfony 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Dec 15, 2021
1 parent 3b15fb3 commit a3b7175
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Serializer/Denormalizer/RouteCollectionDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RouteCollectionDenormalizer implements DenormalizerInterface
/**
* {@inheritDoc}
*/
public function denormalize($data, string $type, string $format = null, array $context = []): RouteCollection
public function denormalize($data, $type, $format = null, array $context = []): RouteCollection
{
$collection = new RouteCollection();

Expand Down
2 changes: 1 addition & 1 deletion Serializer/Normalizer/RouteCollectionNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RouteCollectionNormalizer implements NormalizerInterface
* {@inheritDoc}
* @return array|string|int|float|bool|\ArrayObject|null
*/
public function normalize($data, string $format = null, array $context = array())
public function normalize($data, $format = null, array $context = array())
{
$collection = array();

Expand Down
2 changes: 1 addition & 1 deletion Serializer/Normalizer/RoutesResponseNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RoutesResponseNormalizer implements NormalizerInterface
* {@inheritDoc}
* @return array|string|int|float|bool|\ArrayObject|null
*/
public function normalize($data, string $format = null, array $context = array())
public function normalize($data, $format = null, array $context = array())
{
return array(
'base_url' => $data->getBaseUrl(),
Expand Down

0 comments on commit a3b7175

Please sign in to comment.