Skip to content

Commit e88bbc2

Browse files
Merge pull request #7 from jagoPG/fix/stored-event-checking
Fix/stored event checking
2 parents 49c8a9d + 5f70dfb commit e88bbc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This changelog references the relevant changes done between versions.
55
To get the diff for a specific change, go to https://github.com/LIN3S/SharedKernel/commit/XXX where XXX is the change hash
66
To get the diff between two versions, go to https://github.com/LIN3S/SharedKernel/compare/v0.8.0...v0.9.0
77

8+
* 0.9.7
9+
* Allow to an event object to contain an array
810
* 0.9.6
911
* Added `nationalPhone` in the Phone value object.
1012
* 0.9.5

src/LIN3S/SharedKernel/Event/StoredEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function serializePayload(\ReflectionProperty $property, $object, array
110110
{
111111
$property->setAccessible(true);
112112
$value = $property->getValue($object);
113-
if (null === $value || is_scalar($value)) {
113+
if (null === $value || is_scalar($value) || is_array($value)) {
114114
return $value;
115115
}
116116

0 commit comments

Comments
 (0)