Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paullla committed Nov 12, 2021
1 parent 89b7bb4 commit b10a63f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public function __construct(NormalizerInterface $decoratedNormalizer)
$this->decoratedNormalizer = $decoratedNormalizer;
}

public function supportsNormalization($data, $format = null)
public function supportsNormalization($data, $format = null): bool
{
return $this->decoratedNormalizer->supportsNormalization($data, $format);
}

public function normalize($object, $format = null, array $context = [])
public function normalize($object, $format = null, array $context = []): array
{
$docs = $this->decoratedNormalizer->normalize($object, $format, $context);

Expand Down
2 changes: 1 addition & 1 deletion tests/Api/Shop/ProductsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Sylius\Tests\Api\JsonApiTestCase;
use Symfony\Component\HttpFoundation\Response;

class ProductsTest extends JsonApiTestCase
final class ProductsTest extends JsonApiTestCase
{
/** @test */
public function it_preserves_query_param_when_redirecting_from_product_slug_to_product_code(): void
Expand Down

0 comments on commit b10a63f

Please sign in to comment.