Skip to content

Commit bde178c

Browse files
committed
Fix(Bootstrapper): Handle null bindings
- Update anonymous function to explicitly return string - Handle null bindings in vsprintf function
1 parent 856822f commit bde178c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bootstrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected function toSql(QueryExecuted $queryExecuted): string
133133
$pdo = $queryExecuted->connection->getPdo();
134134

135135
return vsprintf($sqlWithPlaceholders, array_map(
136-
static fn ($binding) => null === $binding ? 'NULL' : $pdo->quote($binding),
136+
static fn ($binding): string => null === $binding ? 'NULL' : $pdo->quote($binding),
137137
$bindings
138138
));
139139
}

0 commit comments

Comments
 (0)