Skip to content

Commit 21c89de

Browse files
authored
Merge pull request #13 from yuhal/master
Update Schema.php
2 parents a911df5 + 424c397 commit 21c89de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected function columnsList()
144144
$column = Regex::match('~(["\'])([^"\']+)\1~', $line);
145145
$column = $column->hasMatch() ? $column->group(2) : null;
146146
$types = $this->columnsTypes($column);
147-
$type = Regex::match('/\$.*->(.*)\(/', $line)->group(1);
147+
$type = Regex::match('/\$.*?->(.*?)\(/', $line)->group(1);
148148

149149
return [$line => in_array($type, array_keys($types)) ? $types[$type] : [$column]];
150150
} catch (\Exception $e) {

0 commit comments

Comments
 (0)