diff --git a/src/Method.php b/src/Method.php index 028e1b7..7bc6b7e 100644 --- a/src/Method.php +++ b/src/Method.php @@ -329,7 +329,7 @@ class Method } elseif (is_resource($default)) { //skip to not fail } else { - $default = "'" . trim($default) . "'"; + $default = var_export($default, true); } $paramStr .= " = $default"; }