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

Commit e29bc12

Browse files
committed
Merge branch 'hotfix/50'
Close #50
2 parents f17aad0 + 0bf18c2 commit e29bc12

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
@@ -24,6 +24,10 @@ Versions prior to 0.4.0 were released as the package "weierophinney/hal".
2424

2525
### Fixed
2626

27+
- [#50](https://github.com/zendframework/zend-expressive-hal/pull/50) fixes the `Halresource` constructor documentation of the `$embedded`
28+
argument to correctly be an array of `HalResource` arrays (and not just an
29+
array of `HalResource` instances).
30+
2731
- [#41](https://github.com/zendframework/zend-expressive-hal/pull/41) fixes how `null` values in resources are handled when rendering as XML.
2832
Previously, these would lead to an `InvalidResourceValueException`; now they
2933
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)