[Fix] Fix number of parameters

Fix for this error:
[ErrorException]
  Declaration of Cooperl\Database\DB2\Schema\Blueprint::indexCommand() should be compatible with Illuminate\Databa
  se\Schema\Blueprint::indexCommand($type, $columns, $index, $algorithm = NULL)
This commit is contained in:
Francisc Munteanu 2016-12-15 16:44:05 +01:00 committed by GitHub
parent e26b9b4bcb
commit ac353d84a3

View File

@ -37,10 +37,11 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint
* @param string $type * @param string $type
* @param string|array $columns * @param string|array $columns
* @param string $index * @param string $index
* @param string|null $algorithm
* *
* @return \Illuminate\Support\Fluent * @return \Illuminate\Support\Fluent
*/ */
protected function indexCommand($type, $columns, $index) protected function indexCommand($type, $columns, $index, $algorithm = null)
{ {
$columns = (array) $columns; $columns = (array) $columns;