Skip to content

Commit

Permalink
Updated parameters of FIND_IN_SET methods because of the PHP 5.5>= co…
Browse files Browse the repository at this point in the history
…mpatibility.
  • Loading branch information
izniburak committed Sep 20, 2021
1 parent 604e63e commit 8e228d6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Pdox.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,16 +521,16 @@ public function orNotIn($field, array $keys)
{
return $this->in($field, $keys, 'NOT ', 'OR');
}

/**
* @param string $field
* @param string $key
* @param string $type
* @param string $andOr
* @param string $field
* @param string|integer $key
* @param string $type
* @param string $andOr
*
* @return $this
*/
public function findInSet(string $field, string $key, string $type = '', string $andOr = 'AND')
public function findInSet($field, $key, $type = '', $andOr = 'AND')
{
$key = is_numeric($key) ? $key : $this->escape($key);
$where = $type . 'FIND_IN_SET (' . $key . ', '.$field.')';
Expand All @@ -553,7 +553,7 @@ public function findInSet(string $field, string $key, string $type = '', string
*
* @return $this
*/
public function notFindInSet(string $field, string $key)
public function notFindInSet($field, $key)
{
return $this->findInSet($field, $key, 'NOT ');
}
Expand All @@ -564,7 +564,7 @@ public function notFindInSet(string $field, string $key)
*
* @return $this
*/
public function orFindInSet(string $field, string $key)
public function orFindInSet($field, $key)
{
return $this->findInSet($field, $key, '', 'OR');
}
Expand All @@ -575,7 +575,7 @@ public function orFindInSet(string $field, string $key)
*
* @return $this
*/
public function orNotFindInSet(string $field, string $key)
public function orNotFindInSet($field, $key)
{
return $this->findInSet($field, $key, 'NOT ', 'OR');
}
Expand Down

0 comments on commit 8e228d6

Please sign in to comment.