We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b10a949 commit 377ddf5Copy full SHA for 377ddf5
src/PhpClass/PhpClassPropertyType.php
@@ -30,7 +30,11 @@ public function isNullable(): bool
30
return (bool)current(array_filter($this->types, function ($type) { return !$type->isArray() && 'null' == $type->getItemType(); }));
31
}
32
33
- public function jsonSerialize(): mixed
+ /**
34
+ * Allow easy serialization into JSON
35
+ * @return array|mixed|PhpClassPropertyTypeItemInterface|PhpClassPropertyTypeItemInterface[]
36
+ */
37
+ public function jsonSerialize()
38
{
39
if (0 == count($this->types)){
40
return [];
0 commit comments