改名
This commit is contained in:
@@ -30,7 +30,7 @@ class Annotation extends Component
|
|||||||
* @return array 根据类名获取注解
|
* @return array 根据类名获取注解
|
||||||
* 根据类名获取注解
|
* 根据类名获取注解
|
||||||
*/
|
*/
|
||||||
public function getMethods(string $className, string $method = ''): array
|
public function getMethods(string $className, string $method = ''): mixed
|
||||||
{
|
{
|
||||||
return $this->_loader->getMethod($className, $method);
|
return $this->_loader->getMethod($className, $method);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class Loader extends BaseObject
|
|||||||
public function getMethod(string $class, string $method = ''): mixed
|
public function getMethod(string $class, string $method = ''): mixed
|
||||||
{
|
{
|
||||||
if (!isset($this->_classes[$class])) {
|
if (!isset($this->_classes[$class])) {
|
||||||
return [];
|
return null;
|
||||||
}
|
}
|
||||||
$properties = $this->_classes[$class]['methods'];
|
$properties = $this->_classes[$class]['methods'];
|
||||||
if (!empty($property) && isset($properties[$method])) {
|
if (!empty($property) && isset($properties[$method])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user