From ac353d84a310724d26461c5581e7007a388dc0bb Mon Sep 17 00:00:00 2001 From: Francisc Munteanu Date: Thu, 15 Dec 2016 16:44:05 +0100 Subject: [PATCH] [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) --- src/Schema/Blueprint.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Schema/Blueprint.php b/src/Schema/Blueprint.php index 5cbe049..7f58b36 100644 --- a/src/Schema/Blueprint.php +++ b/src/Schema/Blueprint.php @@ -37,10 +37,11 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint * @param string $type * @param string|array $columns * @param string $index + * @param string|null $algorithm * * @return \Illuminate\Support\Fluent */ - protected function indexCommand($type, $columns, $index) + protected function indexCommand($type, $columns, $index, $algorithm = null) { $columns = (array) $columns;