Skip to content

Commit

Permalink
Fix psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Apr 6, 2024
1 parent add05bd commit c33c443
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ColumnSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function dbTypecast(mixed $value): mixed
}

if (is_string($value)) {
/** @var non-empty-string $placeholder */
$placeholder = uniqid('exp_' . preg_replace('/[^a-z0-9]/i', '', $this->getName()));
return new Expression('TO_BLOB(UTL_RAW.CAST_TO_RAW(:' . $placeholder . '))', [$placeholder => $value]);
}
Expand Down

0 comments on commit c33c443

Please # to comment.