Skip to content

Commit

Permalink
fix(ci): remove dev stability for Symfony 6
Browse files Browse the repository at this point in the history
fix: fix Symfony 6 comptability

fix: allow Symfony ^6.0.1, revert modifications on (De)Normalizer implementations

chore: remove .travis.yml
  • Loading branch information
Kocal committed Dec 14, 2021
1 parent 81ec929 commit 75b877b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Command/RouterDebugExposedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function configure()
}

/**
* @see Command
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
7 changes: 3 additions & 4 deletions Serializer/Denormalizer/RouteCollectionDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ class RouteCollectionDenormalizer implements DenormalizerInterface
{
/**
* {@inheritDoc}
* @return mixed
*/
public function denormalize($data, $class, $format = null, array $context = array())
public function denormalize($data, string $type, string $format = null, array $context = []): RouteCollection
{
$collection = new RouteCollection();

Expand All @@ -44,12 +43,12 @@ public function denormalize($data, $class, $format = null, array $context = arra
/**
* {@inheritDoc}
*/
public function supportsDenormalization($data, $type, $format = null): bool
public function supportsDenormalization($data, string $type, ?string $format = null): bool
{
if (!is_array($data)) {
return false;
}

if (count($data) < 1) {
return true;
}
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, $format = null, array $context = array())
public function normalize($data, string $format = null, array $context = array()): array
{
$collection = array();

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

0 comments on commit 75b877b

Please sign in to comment.