This commit is contained in:
2021-03-03 20:07:15 +08:00
parent 301a283833
commit 1f9d463e77
+1 -1
View File
@@ -96,7 +96,7 @@ class Loader extends BaseObject
public function getMethod(string $class, string $method = ''): mixed
{
if (!isset($this->_classes[$class])) {
return null;
return [];
}
$properties = $this->_classes[$class]['methods'];
if (!empty($property) && isset($properties[$method])) {