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.
2 parents e1cfdfe + 72029ec commit 1d4f5f4Copy full SHA for 1d4f5f4
src/Common/Resource/AbstractResource.php
@@ -82,7 +82,9 @@ public function populateFromArray(array $array): self
82
83
private function parseDocBlockValue(string $type, $val)
84
{
85
- if (strpos($type, '[]') === 0 && is_array($val)) {
+ if (is_null($val)) {
86
+ return $val;
87
+ } elseif (strpos($type, '[]') === 0 && is_array($val)) {
88
$array = [];
89
foreach ($val as $subVal) {
90
$array[] = $this->model($this->normalizeModelClass(substr($type, 2)), $subVal);
0 commit comments