This commit is contained in:
2021-03-04 00:17:29 +08:00
parent 6d9926f6e5
commit ee4436eab4
+3 -3
View File
@@ -93,13 +93,13 @@ class Loader extends BaseObject
* @param string $method
* @return mixed
*/
public function getMethod(string $class, string $method = ''): mixed
public function getMethod(string $class, string $method = ''): array
{
if (!isset($this->_classes[$class])) {
return null;
return [];
}
$properties = $this->_classes[$class]['methods'];
if (!empty($property) && isset($properties[$method])) {
if (!empty($method) && isset($properties[$method])) {
return $properties[$method];
}
return $properties;