diff --git a/src/PhpDocument.php b/src/PhpDocument.php index e24b9ac..575a5e6 100644 --- a/src/PhpDocument.php +++ b/src/PhpDocument.php @@ -325,7 +325,7 @@ class PhpDocument */ public function getDefinitions() { - return $this->definitions; + return $this->definitions ?? []; } /**