From 2fb1135fc58f0b174e23ace8ac6f692824882853 Mon Sep 17 00:00:00 2001 From: Nikolay Zakharov Date: Fri, 11 Dec 2015 17:18:14 +0300 Subject: [PATCH] Fixed: fails to generate with resources --- src/Method.php | 2 ++ 1 file changed, 2 insertions(+) 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) . "'"; }