This commit is contained in:
2021-08-17 17:04:54 +08:00
parent 384b5d43ae
commit 37392bb6f0
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ class Relate
/**
* @param $class
* @param $name
* @return mixed|null
* @return null|array|string
*/
public function getRelate($class, $name = null): ?string
public function getRelate($class, $name = null): null|array|string
{
if (!empty($name)) {
return $this->_classMapping[$class][$name] ?? null;