Browse Source

Fix phpstan detected issue.

mscherer 4 years ago
parent
commit
029298a7e6
1 changed files with 1 additions and 1 deletions
  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) {
 		foreach ($this->_config['fields'] as $field => $type) {
 			if (is_array($type)) {
 			if (is_array($type)) {
-				$type = $field['type'];
+				$type = $type['type'];
 			}
 			}
 			if (!is_string($type)) {
 			if (!is_string($type)) {
 				throw new RuntimeException('Invalid field type setup.');
 				throw new RuntimeException('Invalid field type setup.');