From c0bc4f4bac71226eab1d194e1c8cf357933df643 Mon Sep 17 00:00:00 2001 From: Takayasu Oyama Date: Wed, 23 Jul 2025 10:55:50 +0900 Subject: [PATCH] fix: Blueprint::indexCommand signature broke in v12.21.0 --- composer.json | 2 +- src/Schema/Blueprint.php | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index d72a14b..fff7582 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "php": "^8.2", "ext-grpc": "*", "ext-json": "*", - "laravel/framework": "^12.0", + "laravel/framework": "^12.21", "google/cloud-spanner": "^1.58.4", "grpc/grpc": "^1.42", "symfony/cache": "~7", diff --git a/src/Schema/Blueprint.php b/src/Schema/Blueprint.php index ac555e6..7add526 100644 --- a/src/Schema/Blueprint.php +++ b/src/Schema/Blueprint.php @@ -463,13 +463,11 @@ public function dropChangeStream(string $name): ChangeStreamDefinition } /** - * @param string $type + * @inheritDoc * @param string|list $columns - * @param string $index - * @param string|null $algorithm * @return IndexDefinition */ - protected function indexCommand($type, $columns, $index, $algorithm = null) + protected function indexCommand($type, $columns, $index, $algorithm = null, $operatorClass = null) { $columns = (array) $columns; @@ -483,6 +481,7 @@ protected function indexCommand($type, $columns, $index, $algorithm = null) 'index' => $index, 'columns' => $columns, 'algorithm' => $algorithm, + 'operatorClass' => $operatorClass, ]); return $command;