Skip to content

Conversation

@BacLuc
Copy link
Contributor

@BacLuc BacLuc commented Nov 30, 2024

This fixes the psalm error

  • Argument 1 of App\Serializer\Normalizer\CircularReferenceDetectingHalItemNormalizer::normalize has wrong name $object, expecting $data as defined by Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize (see https://psalm.dev/230) public function normalize($object, $format = null, array $context = []): null|array|\ArrayObject|bool|float|int|string { } After 6bdbd2e.

@BacLuc BacLuc requested a review from a team November 30, 2024 14:29
private EntityManagerInterface|MockObject $entityManager;

private ?FilterInterface $filterInstance;
private null|DateFilter|SearchFilterInterface $filterInstance;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test failed locally because the filters are not under a common interface anymore...?

This fixes the psalm error
- Argument 1 of App\Serializer\Normalizer\CircularReferenceDetectingHalItemNormalizer::normalize has wrong name $object, expecting $data as defined by Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize (see https://psalm.dev/230)
    public function normalize($object, $format = null, array $context = []): null|array|\ArrayObject|bool|float|int|string {
    }
After 6bdbd2e.

Suppress the error for CircularReferenceDetectingHalItemNormalizer::normalize, because AbstractItemNormalizer of api-platform and AbstractObjectNormalizer of Symfony
are not there yet.
@pmattmann pmattmann added this pull request to the merge queue Dec 3, 2024
Merged via the queue into ecamp:devel with commit 7ef0723 Dec 3, 2024
31 checks passed
@carlobeltrame carlobeltrame mentioned this pull request Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants