From 8a58971e4f9fec9e17a1817de7949326681d8de4 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 8 Apr 2016 11:02:26 +0200 Subject: Possible fix for #585 --- framework/TComponent.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'framework/TComponent.php') diff --git a/framework/TComponent.php b/framework/TComponent.php index 127b68a3..0752d04c 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -555,7 +555,10 @@ class TComponent return isset($args[0])?$args[0]:null; } - throw new TApplicationException('component_method_undefined',get_class($this),$method); + // don't thrown an exception for __magicMethods() or any other weird methods natively implemented by php + if (!method_exists($this, $method)) { + throw new TApplicationException('component_method_undefined',get_class($this),$method); + } } -- cgit v1.2.3