mrcoco / slim3-eloquent-skeleton

This is a simple skeleton project fork from akrabat/slim3-skeleton that includes scaffold tool, migrations,auth,Twig Twig, Flash messages, eloquent ORM and Monolog.
BSD 3-Clause "New" or "Revised" License
73 stars 20 forks source link

Postgres database always complaint about array_map() #3

Open dbrw opened 7 years ago

dbrw commented 7 years ago

Hi, @mrcoco thanks for this great project. I have a question for you.

When I ran php cli.php migrate the tool always return errors like bellow:

➜  data  php cli.php migrate

PHP Warning:  array_map(): Argument #2 should be an array in /home/dim/web/docker/webserver/data/vendor/davedevelopment/phpmig/src/Phpmig/Adapter/Illuminate/Database.php on line 62
PHP Warning:  sort() expects parameter 1 to be array, null given in /home/dim/web/docker/webserver/data/vendor/davedevelopment/phpmig/src/Phpmig/Console/Command/MigrateCommand.php on line 62
PHP Warning:  array_merge(): Argument #1 is not an array in /home/dim/web/docker/webserver/data/vendor/davedevelopment/phpmig/src/Phpmig/Console/Command/MigrateCommand.php on line 76

I use postgresql on my project, the command create migrations table but nothing else. Could you lead me to the right way? I already searched on the phpmig and eloquent documentation but couldn't found any working answer.

mrcoco commented 7 years ago

I think this is a problem in phpmig dev version. but I have not tried yet