This commit is contained in:
2020-12-17 14:09:14 +08:00
parent 672a719dbd
commit 36c1d0502a
151 changed files with 1937 additions and 2848 deletions
+4 -4
View File
@@ -30,10 +30,10 @@ class Dtl extends Component
/**
* @return mixed
* @return array
* @throws Exception
*/
public function toArray()
public function toArray(): array
{
if (!is_array($this->params)) {
return ArrayAccess::toArray($this->params);
@@ -44,10 +44,10 @@ class Dtl extends Component
/**
* @param $name
* @return mixed|null
* @return mixed
* @throws Exception
*/
public function get($name)
public function get($name): mixed
{
$array = $this->toArray();
if (!isset($array[$name])) {