Skip to content

Commit 15c2a1a

Browse files
committed
Improvement on getType
- force lowercase - use correct variable in exception messages
1 parent 714882e commit 15c2a1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Loader/BaseLoader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ public function applyType(Column $column, $type, $extra)
7272
*/
7373
public function getType($type)
7474
{
75+
$type = strtolower($type);
7576
if (!$this->isTypeSupported($type)) {
76-
throw new UnsupportedFieldTypeException($srctype);
77+
throw new UnsupportedFieldTypeException($type);
7778
}
7879

7980
$actialType = $this->typesMap[$type];

0 commit comments

Comments
 (0)