Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 25d82e0

Browse files
committed
Merge branch 'hotfix/50' into develop
Forward port #50
2 parents 31250bd + 0bf18c2 commit 25d82e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ Versions prior to 0.4.0 were released as the package "weierophinney/hal".
4646

4747
### Fixed
4848

49+
- [#50](https://github.com/zendframework/zend-expressive-hal/pull/50) fixes the `Halresource` constructor documentation of the `$embedded`
50+
argument to correctly be an array of `HalResource` arrays (and not just an
51+
array of `HalResource` instances).
52+
4953
- [#41](https://github.com/zendframework/zend-expressive-hal/pull/41) fixes how `null` values in resources are handled when rendering as XML.
5054
Previously, these would lead to an `InvalidResourceValueException`; now they
5155
are rendered as content-less tags.

src/HalResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class HalResource implements EvolvableLinkProviderInterface, JsonSerializable
5454
/**
5555
* @param array $data
5656
* @param LinkInterface[] $links
57-
* @param HalResource[] $embedded
57+
* @param HalResource[][] $embedded
5858
*/
5959
public function __construct(array $data = [], array $links = [], array $embedded = [])
6060
{

0 commit comments

Comments
 (0)