This commit is contained in:
2021-03-04 00:04:37 +08:00
parent c588806baf
commit ad70e14f83
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -820,11 +820,12 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
/**
* @param string $type
* @return array
*/
protected function getAnnotation(): array
protected function getAnnotation($type = 'get'): array
{
return $this->_annotations;
return $this->_annotations[$type] ?? [];
}