mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Filter/Fixup
* criteria parameters can be placeholder/null
This commit is contained in:
@@ -713,7 +713,7 @@ abstract class Filter
|
|||||||
|
|
||||||
[$crType, $colOrFn, $param1, $param2] = array_pad(static::$genericFilter[$cr], 4, null);
|
[$crType, $colOrFn, $param1, $param2] = array_pad(static::$genericFilter[$cr], 4, null);
|
||||||
|
|
||||||
$handleEnum = function(int $cr, int $crs, string $col, bool $hasAnyNone, bool $crsAsVal) : ?array
|
$handleEnum = function(int $cr, int $crs, string $col, ?bool $hasAnyNone, ?bool $crsAsVal) : ?array
|
||||||
{
|
{
|
||||||
if ($hasAnyNone && ($crs == self::ENUM_ANY || $crs == self::ENUM_NONE))
|
if ($hasAnyNone && ($crs == self::ENUM_ANY || $crs == self::ENUM_NONE))
|
||||||
return $this->genericEnum($col, $crs);
|
return $this->genericEnum($col, $crs);
|
||||||
|
|||||||
Reference in New Issue
Block a user