From 6df12e5127b418a2efa34b29616fb7b34be42e9b Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Thu, 22 Feb 2024 00:34:44 -0300 Subject: [PATCH] Set reflections on registry --- system/engine/registry.php | 3 +++ system/reflectionclass/autoload.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/system/engine/registry.php b/system/engine/registry.php index 6d9b2a1..3106e7e 100644 --- a/system/engine/registry.php +++ b/system/engine/registry.php @@ -7,6 +7,9 @@ */ namespace Phacil\Framework; + + use Phacil\Framework\ReflectionClass; + use Phacil\Framework\ReflectionMethod; /** * The registration of all objects on this Framework. diff --git a/system/reflectionclass/autoload.php b/system/reflectionclass/autoload.php index 7548d72..82129cc 100644 --- a/system/reflectionclass/autoload.php +++ b/system/reflectionclass/autoload.php @@ -21,6 +21,9 @@ class ReflectionClass extends \ReflectionClass{ * @return \Phacil\Framework\PHPDocParser */ public function getDocCommentParse() { + if (!$this->getDocComment()) + return false; + $docParse = new \Phacil\Framework\PHPDocParser($this->getDocComment()); $docParse->parse();