- Some minors adjustments to match PHP 8.x coding styles
This commit is contained in:
1 parent
3736fbe0f6
commit
fed7d2e302
4 files changed
+23
-19
No files matched your search
+4
-4
@@ -16,7 +16,7 @@ class Where extends Fragment {
|
||||
const COMPARISON_IS = "IS";
|
||||
const COMPARISON_NULL = "NULL";
|
||||
|
||||
const SQL_TOKEN = "WHERE";
|
||||
const SQL_TOKEN = "WHERE";
|
||||
|
||||
public int $order = 50;
|
||||
|
||||
@@ -35,7 +35,7 @@ class Where extends Fragment {
|
||||
$this->parent = $queryBuilder->where ?? null;
|
||||
}
|
||||
|
||||
public function add($field, $value, string $operator, string $condition, bool $not = false) : self
|
||||
public function add($field, mixed $value, string $operator, string $condition, bool $not = false) : self
|
||||
{
|
||||
$this->validateFieldType($field);
|
||||
# $this->validateValueType($value);
|
||||
@@ -73,7 +73,7 @@ class Where extends Fragment {
|
||||
]);
|
||||
}
|
||||
|
||||
protected function whereCondition($field, $value, string $operator = self::OPERATOR_EQUAL, string $condition = self::CONDITION_AND, bool $not = false) {
|
||||
protected function whereCondition($field, mixed $value, string $operator = self::OPERATOR_EQUAL, string $condition = self::CONDITION_AND, bool $not = false) {
|
||||
return new class($this->queryBuilder, $field, $value, $operator, $condition, $not) {
|
||||
|
||||
public mixed $value;
|
||||
@@ -123,7 +123,7 @@ class Where extends Fragment {
|
||||
$stack = [];
|
||||
|
||||
if ($this->value) {
|
||||
foreach ($this->value as $item) {
|
||||
foreach($this->value as $item) {
|
||||
$stack[] = $this->filterValue($item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user