diff --git a/src/Core/Mapping/TReflectionProperties.php b/src/Core/Mapping/TReflectionProperties.php index f9902fa..bcd16df 100644 --- a/src/Core/Mapping/TReflectionProperties.php +++ b/src/Core/Mapping/TReflectionProperties.php @@ -7,11 +7,11 @@ trait TReflectionProperties { - /** @var mixed[] */ + /** @var array> */ protected array $properties = []; /** - * @return mixed[] + * @return array> */ public function getProperties(): array { @@ -35,7 +35,7 @@ public function getProperties(): array $name = $property->getName(); $properties[$name] = [ 'name' => $name, - 'type' => $property->getValue($this), + 'type' => $property->isInitialized($this) ? $property->getValue($this) : null, 'defaultValue' => $defaultProperties[$name] ?? null, ]; } @@ -47,7 +47,7 @@ public function getProperties(): array } /** - * @return mixed[] + * @return array */ public function toArray(): array {