Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 93254ea

Browse files
committedFeb 19, 2025
fix: stan errors (#262)
1 parent 56736ac commit 93254ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
use Google\Cloud\Spanner\SpannerClient;
3838
use Google\Cloud\Spanner\Timestamp;
3939
use Google\Cloud\Spanner\Transaction;
40+
use Illuminate\Contracts\Database\Query\Expression;
4041
use Illuminate\Contracts\Support\Arrayable;
4142
use Illuminate\Database\Connection as BaseConnection;
42-
use Illuminate\Database\Query\Expression;
4343
use Illuminate\Database\Query\Grammars\Grammar as BaseQueryGrammar;
4444
use Illuminate\Database\QueryException;
4545
use Illuminate\Support\Arr;

‎src/Schema/ColumnDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace Colopl\Spanner\Schema;
2222

23-
use Illuminate\Database\Query\Expression;
23+
use Illuminate\Contracts\Database\Query\Expression;
2424
use Illuminate\Database\Schema\ColumnDefinition as BaseColumnDefinition;
2525

2626
/**

‎src/Schema/Grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ protected function modifyGeneratedAs(Blueprint $blueprint, Fluent $column): ?str
858858

859859
$expression = match (true) {
860860
$as === true => 'bit_reversed_positive',
861-
$as instanceof Expression => $this->getValue($as),
861+
$as instanceof ExpressionContract => $this->getValue($as),
862862
default => $as,
863863
};
864864

0 commit comments

Comments
 (0)
Please sign in to comment.