Skip to content

Commit

Permalink
Fix serialization without touch pseudo-rich calls
Browse files Browse the repository at this point in the history
  • Loading branch information
avolver committed Feb 10, 2019
1 parent 61a7402 commit 79c62e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "6dreams/rich-model-trait",
"description": "A rich replacement for your anemic getters and setters",
"version": "0.6.4",
"version": "0.6.5",
"type": "library",
"license": "MIT",
"authors": [
Expand Down
3 changes: 3 additions & 0 deletions src/SixDreams/RichModel/Traits/RichModelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,12 @@ public function __call($name, array $arguments = [])
* {@inheritdoc}
*
* @return array
*
* @throws RichModelFieldException
*/
public function __sleep()
{
$this->initRichModelUtils();
return (array) \array_reduce(
$this->richClassReflection->getProperties(),
function (array $items, \ReflectionProperty $property) {
Expand Down

0 comments on commit 79c62e9

Please # to comment.