From 4aaa1783117c5d6f6dd48a3019f6e7b06a010b2d Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Fri, 1 Aug 2014 23:14:15 +0300 Subject: [PATCH] namespaced functions --- ipf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipf.php b/ipf.php index 1920260..96378fc 100644 --- a/ipf.php +++ b/ipf.php @@ -118,7 +118,7 @@ final class IPF if (is_array($function)) { // object/class method $callable = $function; - } elseif (preg_match('/^(\w+)::(\w+)$/', $function, $m)) { + } elseif (preg_match('/^([\\\\\w]+)::(\w+)$/i', $function, $m)) { // static method $callable = array($m[1], $m[2]); } else { -- 2.49.0