Skip to content

Commit

Permalink
Merge pull request #13 from Adgoal/fix_dictionary_from_native_method
Browse files Browse the repository at this point in the history
bugfix Dictionary.php
  • Loading branch information
temafey authored Aug 18, 2020
2 parents 886d07f + 123d9ce commit a1a0274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Structure/Dictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Dictionary extends Collection
/**
* Returns a new Dictionary object.
*
* @return self
* @return static
*/
public static function fromNative(): ValueObjectInterface
{
Expand All @@ -37,7 +37,7 @@ public static function fromNative(): ValueObjectInterface
}
$fixedArray = SplFixedArray::fromArray($keyValuePairs);

return new self($fixedArray);
return new static($fixedArray);
}

/**
Expand Down

0 comments on commit a1a0274

Please sign in to comment.