Commit 406e925
php artisan doctrine:migrations:migrate --write-sql throws ErrorException (#46)
[ErrorException]
Invalid argument supplied for foreach()
This happens as a result of the return from $sqlWriter->write which returns the result from file_put_contents. file_put_contents returns the number of bytes that were written to the file, or FALSE on failure. writeNotes expects an array of statements which needs to be looked up separately.1 parent a5926f5 commit 406e925
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments