Process/Php7.php
[Pman.Core] / Process / Php7.php
index 833e2f1..cac9cf9 100644 (file)
@@ -22,15 +22,12 @@ class Pman_Core_Process_Php7 extends Pman
             die("CLI only");
         }
     }
-
-    function exception_error_handler($errno, $errstr, $errfile, $errline ) 
-    {
-        throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
-    }
-
+    
     function get($base, $opts = array()) 
     {
-        set_error_handler("exception_error_handler");
+        set_error_handler(function ($errno, $errstr, $errfile, $errline ){
+            throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
+        });
         
         $this->scan();
     }