diff --git a/src/Method.php b/src/Method.php index 4e4376c..c8c6715 100644 --- a/src/Method.php +++ b/src/Method.php @@ -270,6 +270,8 @@ class Method $default = 'null'; } elseif (is_int($default)) { //$default = $default; + } elseif (is_resource($default)) { + //skip to not fail } else { $default = "'" . trim($default) . "'"; }