Skip to content

Commit

Permalink
hotfix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
strider2038 committed Jan 9, 2020
1 parent e8c2927 commit 9c2efa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function denormalize($data, $class, $format = null, array $context = []):
return $collection;
}

private function createAndFillCollection(array $data, string $class, string $format, array $context): CollectionInterface
private function createAndFillCollection(array $data, string $class, ?string $format, array $context): CollectionInterface
{
/** @var CollectionInterface $collection */
$collection = new $class();
Expand Down
2 changes: 1 addition & 1 deletion src/Serialization/RamseyCollection/TypedMapNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function denormalize($data, $class, $format = null, array $context = []):
return $map;
}

private function createAndFillMap(array $data, string $class, string $format, array $context): TypedMapInterface
private function createAndFillMap(array $data, string $class, ?string $format, array $context): TypedMapInterface
{
/** @var TypedMapInterface $map */
$map = new $class();
Expand Down

0 comments on commit 9c2efa5

Please sign in to comment.