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();