浏览代码

Fix phpstan detected issue.

mscherer 4 年之前
父节点
当前提交
029298a7e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Model/Behavior/TypeMapBehavior.php

+ 1 - 1
src/Model/Behavior/TypeMapBehavior.php

@@ -37,7 +37,7 @@ class TypeMapBehavior extends Behavior {
 
 		foreach ($this->_config['fields'] as $field => $type) {
 			if (is_array($type)) {
-				$type = $field['type'];
+				$type = $type['type'];
 			}
 			if (!is_string($type)) {
 				throw new RuntimeException('Invalid field type setup.');