Skip to content

Commit

Permalink
PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Nov 26, 2024
1 parent 23bb684 commit 5acb80e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\>, iterable\\<int, Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\> given\\.$#"
message: "#^Parameter \\#1 \\$versions of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\VersionList constructor expects array\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\>, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\> given\\.$#"
count: 1
path: src/lib/Server/Controller/Content.php

Expand Down
2 changes: 2 additions & 0 deletions src/contracts/Output/VisitorAdapterNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function __construct(
* @param array<string, mixed> $context
*
* @throws \LogicException
*
* {@inheritDoc}
*/
public function normalize(mixed $object, ?string $format = null, array $context = []): mixed
{
Expand Down
3 changes: 3 additions & 0 deletions src/lib/Output/Generator/AbstractFieldTypeHashGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/Output/Normalizer/ArrayListNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ final class ArrayListNormalizer implements NormalizerInterface, NormalizerAwareI
* @param array<mixed> $context
*
* @return array<mixed>
*
* {@inheritDoc}
*/
public function normalize($object, ?string $format = null, array $context = []): array
{
Expand Down
2 changes: 2 additions & 0 deletions src/lib/Output/Normalizer/ArrayObjectNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ final class ArrayObjectNormalizer implements NormalizerInterface
* @param array<mixed> $context
*
* @return array<mixed>
*
* {@inheritDoc}
*/
public function normalize($object, ?string $format = null, array $context = []): array
{
Expand Down
2 changes: 2 additions & 0 deletions src/lib/Output/Normalizer/JsonObjectNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ final class JsonObjectNormalizer implements NormalizerInterface, NormalizerAware
* @param array<mixed> $context
*
* @return array<mixed>
*
* {@inheritDoc}
*/
public function normalize($object, ?string $format = null, array $context = []): array
{
Expand Down

0 comments on commit 5acb80e

Please sign in to comment.