We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a911df5 + 424c397 commit 21c89deCopy full SHA for 21c89de
src/Schema.php
@@ -144,7 +144,7 @@ protected function columnsList()
144
$column = Regex::match('~(["\'])([^"\']+)\1~', $line);
145
$column = $column->hasMatch() ? $column->group(2) : null;
146
$types = $this->columnsTypes($column);
147
- $type = Regex::match('/\$.*->(.*)\(/', $line)->group(1);
+ $type = Regex::match('/\$.*?->(.*?)\(/', $line)->group(1);
148
149
return [$line => in_array($type, array_keys($types)) ? $types[$type] : [$column]];
150
} catch (\Exception $e) {
0 commit comments