Skip to content

Commit cb4fdd7

Browse files
authored
fix: Blueprint::indexCommand signature broke in v12.21.0 (#289)
1 parent e01b70e commit cb4fdd7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"php": "^8.2",
1212
"ext-grpc": "*",
1313
"ext-json": "*",
14-
"laravel/framework": "^12.0",
14+
"laravel/framework": "^12.21",
1515
"google/cloud-spanner": "^1.58.4",
1616
"grpc/grpc": "^1.42",
1717
"symfony/cache": "~7",

src/Schema/Blueprint.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,11 @@ public function dropChangeStream(string $name): ChangeStreamDefinition
463463
}
464464

465465
/**
466-
* @param string $type
466+
* @inheritDoc
467467
* @param string|list<string> $columns
468-
* @param string $index
469-
* @param string|null $algorithm
470468
* @return IndexDefinition
471469
*/
472-
protected function indexCommand($type, $columns, $index, $algorithm = null)
470+
protected function indexCommand($type, $columns, $index, $algorithm = null, $operatorClass = null)
473471
{
474472
$columns = (array) $columns;
475473

@@ -483,6 +481,7 @@ protected function indexCommand($type, $columns, $index, $algorithm = null)
483481
'index' => $index,
484482
'columns' => $columns,
485483
'algorithm' => $algorithm,
484+
'operatorClass' => $operatorClass,
486485
]);
487486

488487
return $command;

0 commit comments

Comments
 (0)