THAN: return $value < $filterValue; case self::CONDITION_IS_MULTIPLE_OF: return fmod($value, $filterValue) === 0.0; case self::CONDITION_IS_NOT_MULTIPLE_OF: return fmod($value, $filterValue) !== 0.0; default: return false; } } /** * @param float|null $value * @param mixed $filterValue */ private function matchesBetween(string $condition, $value, $filterValue): bool { if (!is_array($filterValue) || count($filterValue) !== 2) { return false; } if (!$this->isNumber($filterValue[0]) || !$this->isNumber($filterValue[1]) || $filterValue[0] >= $filterValue[1]) { return false; } if (!$this->isNumber($value)) { return false; } /** @var float $value */ $value = floatval($value); $from = floatval($filterValue[0]); $to = floatval($filterValue[1]); switch ($condition) { case self::CONDITION_BETWEEN: return $value > $from && $value < $to; case self::CONDITION_NOT_BETWEEN: return $value <= $from || $value >= $to; default: return false; } } /** @param mixed $value */ private function matchesSet(string $condition, $value): bool { switch ($condition) { case self::CONDITION_IS_SET: return $value !== null; case self::CONDITION_IS_NOT_SET: return $value === null; default: return false; } } /** @param mixed $value */ private function isNumber($value): bool { return is_integer($value) || is_float($value); } }
Fatal error: Uncaught Error: Class "MailPoet\Automation\Integrations\Core\Filters\NumberFilter" not found in /htdocs/wp-content/plugins/mailpoet/lib/Automation/Integrations/Core/CoreIntegration.php:39 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/lib/Automation/Engine/Engine.php(76): MailPoet\Automation\Integrations\Core\CoreIntegration->register(Object(MailPoet\Automation\Engine\Registry)) #1 /htdocs/wp-content/plugins/mailpoet/lib/Config/Initializer.php(385): MailPoet\Automation\Engine\Engine->initialize() #2 /htdocs/wp-includes/class-wp-hook.php(324): MailPoet\Config\Initializer->initialize('') #3 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /htdocs/wp-settings.php(704): do_action('init') #6 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #7 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #8 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #9 /htdocs/index.php(17): require('/htdocs/wp-blog...') #10 {main} thrown in /htdocs/wp-content/plugins/mailpoet/lib/Automation/Integrations/Core/CoreIntegration.php on line 39