diff --git a/core/Pimf/Util/Validator.php b/core/Pimf/Util/Validator.php
index <HASH>..<HASH> 100644
--- a/core/Pimf/Util/Validator.php
+++ b/core/Pimf/Util/Validator.php
@@ -295,7 +295,9 @@ class Validator
     protected function middleware($fieldName, $comparing, $operator, $expecting)
     {
         if (in_array($operator, array("<", ">", "==", "<=", ">="), true)) {
-            $func = create_function('$a,$b', 'return ($a ' . '' . $operator . ' $b);');
+            $func = function($a,$b) use ($operator) {
+                return ($a.' '.$operator.' '.$b);
+            };
 
             return ($func($comparing, $expecting) === true) ?: $this->error($fieldName, $operator);
         }
refactoring of create_function()

- that has been deprecated in PHP <I>
- and will be removed from PHP in the next major version.