Skip to content

Commit

Permalink
$expression->getType() returns database type but not an abstract type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Oct 10, 2023
1 parent 53d7b0e commit 0a926a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/ArrayExpressionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private function typecastValue(
return $value;
}

if (in_array($expression->getType(), [SchemaInterface::TYPE_JSON, SchemaInterface::TYPE_JSONB], true)) {
if (in_array($expression->getType(), ['json', 'jsonb'], true)) {
return new JsonExpression($value);
}

Expand Down

0 comments on commit 0a926a6

Please sign in to comment.