h ($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:32 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/lib/Automation/Engine/Engine.php(75): MailPoet\Automation\Integrations\Core\CoreIntegration->register(Object(MailPoet\Automation\Engine\Registry)) #1 /htdocs/wp-content/plugins/mailpoet/lib/Config/Initializer.php(338): MailPoet\Automation\Engine\Engine->initialize() #2 /htdocs/wp-includes/class-wp-hook.php(310): MailPoet\Config\Initializer->initialize('') #3 /htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #4 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /htdocs/wp-settings.php(632): do_action('init') #6 /htdocs/wp-config.php(96): 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 32