diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 644294ee..5df0d464 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -571,7 +571,7 @@ parameters: path: src/lib/Server/Controller/Content.php - - message: "#^Parameter \\#1 \\$versions of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\VersionList constructor expects array\\, iterable\\ given\\.$#" + message: "#^Parameter \\#1 \\$versions of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\VersionList constructor expects array\\, iterable\\ given\\.$#" count: 1 path: src/lib/Server/Controller/Content.php diff --git a/src/contracts/Output/VisitorAdapterNormalizer.php b/src/contracts/Output/VisitorAdapterNormalizer.php index 06b858c8..90fc6957 100644 --- a/src/contracts/Output/VisitorAdapterNormalizer.php +++ b/src/contracts/Output/VisitorAdapterNormalizer.php @@ -36,6 +36,8 @@ public function __construct( * @param array $context * * @throws \LogicException + * + * {@inheritDoc} */ public function normalize(mixed $object, ?string $format = null, array $context = []): mixed { diff --git a/src/lib/Output/Generator/AbstractFieldTypeHashGenerator.php b/src/lib/Output/Generator/AbstractFieldTypeHashGenerator.php index 46b8bc60..d42b5983 100644 --- a/src/lib/Output/Generator/AbstractFieldTypeHashGenerator.php +++ b/src/lib/Output/Generator/AbstractFieldTypeHashGenerator.php @@ -89,6 +89,9 @@ protected function isNumericArray(array $value): bool return true; } + /** + * @throws \Symfony\Component\Serializer\Exception\ExceptionInterface + */ protected function generateObjectValue(DataObjectInterface $parent, object $value): mixed { try { diff --git a/src/lib/Output/Normalizer/ArrayListNormalizer.php b/src/lib/Output/Normalizer/ArrayListNormalizer.php index 3ead4b91..b6844705 100644 --- a/src/lib/Output/Normalizer/ArrayListNormalizer.php +++ b/src/lib/Output/Normalizer/ArrayListNormalizer.php @@ -22,6 +22,8 @@ final class ArrayListNormalizer implements NormalizerInterface, NormalizerAwareI * @param array $context * * @return array + * + * {@inheritDoc} */ public function normalize($object, ?string $format = null, array $context = []): array { diff --git a/src/lib/Output/Normalizer/ArrayObjectNormalizer.php b/src/lib/Output/Normalizer/ArrayObjectNormalizer.php index 948b6d56..fc6994b8 100644 --- a/src/lib/Output/Normalizer/ArrayObjectNormalizer.php +++ b/src/lib/Output/Normalizer/ArrayObjectNormalizer.php @@ -16,6 +16,8 @@ final class ArrayObjectNormalizer implements NormalizerInterface * @param array $context * * @return array + * + * {@inheritDoc} */ public function normalize($object, ?string $format = null, array $context = []): array { diff --git a/src/lib/Output/Normalizer/JsonObjectNormalizer.php b/src/lib/Output/Normalizer/JsonObjectNormalizer.php index 70d53958..c703959d 100644 --- a/src/lib/Output/Normalizer/JsonObjectNormalizer.php +++ b/src/lib/Output/Normalizer/JsonObjectNormalizer.php @@ -22,6 +22,8 @@ final class JsonObjectNormalizer implements NormalizerInterface, NormalizerAware * @param array $context * * @return array + * + * {@inheritDoc} */ public function normalize($object, ?string $format = null, array $context = []): array {