Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / config / Definition / Builder / ExprBuilder.php
index 10112a813df7a0df9bd07422d998fbd67392d3fe..150a2ec9ab3a3d58651138e3324c50ba8e7eebc1 100644 (file)
@@ -97,6 +97,18 @@ class ExprBuilder
         return $this;
     }
 
+    /**
+     * Tests if the value is empty.
+     *
+     * @return ExprBuilder
+     */
+    public function ifEmpty()
+    {
+        $this->ifPart = function ($v) { return empty($v); };
+
+        return $this;
+    }
+
     /**
      * Tests if the value is an array.
      *