Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / var-dumper / Resources / functions / dump.php
index b6c243c8b6e2f6083ea49cd0d1a93fe5a5985861..0e0e4d043521816b22871997b72ce5d9f8edb13f 100644 (file)
@@ -17,8 +17,14 @@ if (!function_exists('dump')) {
      */
     function dump($var)
     {
-        foreach (func_get_args() as $var) {
-            VarDumper::dump($var);
+        foreach (func_get_args() as $v) {
+            VarDumper::dump($v);
         }
+
+        if (1 < func_num_args()) {
+            return func_get_args();
+        }
+
+        return $var;
     }
 }