X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=index.js;h=feaf66e439f9a8286f859980bdc553544ae6f2cb;hb=70f567a0fa292abb7aef7b22c51b273e9690975a;hp=a6c39342de32691896e6890b274c8735219e57b9;hpb=4e942497356300135e560588e805920da7834ff4;p=mdref%2Fmdref diff --git a/index.js b/index.js index a6c3934..feaf66e 100644 --- a/index.js +++ b/index.js @@ -31,6 +31,7 @@ function type(s, nn) { case "int": case "float": case "string": + case "resource": case "array": case "object": case "callable": @@ -83,11 +84,11 @@ function type(s, nn) { t = s.substring(i+2); if (!is_constant(t) && !is_variable(t)) { // methods - return ""; + return ""; } } if (-1 !== (j = s.indexOf("\\")) && s.substr(j+1,1) !== "n") { - return ""; + return ""; } switch (s.toLowerCase()) {