Skip to content

Commit 5c6f557

Browse files
Fix for empty structure content
1 parent eb62a02 commit 5c6f557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packstream/v1/Unpacker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function unpackStruct(int $marker): array|IStructure|null
143143
return new $class(...$values);
144144
} else {
145145
$this->signature = $signature;
146-
return $this->u();
146+
return mb_strlen($this->message, '8bit') > $this->offset ? $this->u() : [];
147147
}
148148
}
149149

0 commit comments

Comments
 (0)