iberflow / laravel-model-generator

Laravel 5 model generator for an existing schema
264 stars 75 forks source link

Support PHP5 by separating cast to its own line. #39

Closed jacobsantos closed 7 years ago

jacobsantos commented 7 years ago

To be complete, this should check if it is an array and cast as there are additional side effects that should be checked for, in case at any point the query fails and null or another value is returned.

As the original PR was a quick hack to get the command working on PHP7, this is also a quick hack to get it working again on PHP5.

iberflow commented 7 years ago

fixed with #40