We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ee6870 commit 9cf91beCopy full SHA for 9cf91be
src/Structure/ClassStructureTrait.php
@@ -104,6 +104,11 @@ public function jsonSerialize()
104
$processed = array();
105
if (null !== $properties) {
106
foreach ($properties->getDataKeyMap() as $propertyName => $dataName) {
107
+ if (!isset($this->$propertyName)) {
108
+ // Skip uninitialized properties
109
+ continue;
110
+ }
111
+
112
$value = $this->$propertyName;
113
114
// Value is exported if exists.
0 commit comments