Skip to content

Commit

Permalink
Merge pull request #202 from willdurand/revert-195-patch-1
Browse files Browse the repository at this point in the history
Revert "Set a default exclusion configuration to Embedded"
  • Loading branch information
willdurand committed May 21, 2015
2 parents 2a05000 + 0af912b commit fc08693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hateoas/Configuration/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Relation
public function __construct($name, $href = null, $embedded = null, array $attributes = array(), Exclusion $exclusion = null)
{
if (null !== $embedded && !$embedded instanceof Embedded) {
$embedded = new Embedded($embedded, null, $exclusion);
$embedded = new Embedded($embedded);
}

if (null === !$href && null === $embedded) {
Expand Down

0 comments on commit fc08693

Please sign in to comment.