Skip to content

Commit

Permalink
Accept strings in AbstractPlatform::get*Expression() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Dec 19, 2021
1 parent decf34a commit e9834b7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ public function getSqrtExpression($column)
*
* @deprecated Use ROUND() in SQL instead.
*
* @param string $column
* @param int $decimals
* @param string $column
* @param string|int $decimals
*
* @return string
*/
Expand Down Expand Up @@ -975,9 +975,9 @@ public function getLowerExpression($str)
/**
* Returns the SQL snippet to get the position of the first occurrence of substring $substr in string $str.
*
* @param string $str Literal string.
* @param string $substr Literal string to find.
* @param int|false $startPos Position to start at, beginning of string by default.
* @param string $str Literal string.
* @param string $substr Literal string to find.
* @param string|int|false $startPos Position to start at, beginning of string by default.
*
* @return string
*
Expand Down Expand Up @@ -1013,9 +1013,9 @@ public function getNowExpression()
*
* SQLite only supports the 2 parameter variant of this function.
*
* @param string $string An sql string literal or column name/alias.
* @param int $start Where to start the substring portion.
* @param int|null $length The substring portion length.
* @param string $string An sql string literal or column name/alias.
* @param string|int $start Where to start the substring portion.
* @param string|int|null $length The substring portion length.
*
* @return string
*/
Expand Down

0 comments on commit e9834b7

Please sign in to comment.