Skip to content

Commit

Permalink
fix phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
MatanYadaev committed Nov 23, 2024
1 parent 43edde6 commit aad7900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GeometryCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function extractValuesFromExpression(ExpressionContract $expression, Con
preg_match("/ST_GeomFromText\(\s*'([^']+)'\s*(?:,\s*(\d+))?\s*(?:,\s*'([^']+)')?\s*\)/", (string) $expressionValue, $matches);

return [
'wkt' => $matches[1],
'wkt' => $matches[1] ?? '',
'srid' => (int) ($matches[2] ?? 0),
];
}
Expand Down

0 comments on commit aad7900

Please sign in to comment.