From 53d3571c5f4be3d64a918b80c62375fe64f3d837 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 20 Nov 2016 17:58:25 +0100 Subject: [PATCH] fixed token inheritance check - sicne tis now an interface --- token/token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token/token.php b/token/token.php index 13eeba3..914284e 100644 --- a/token/token.php +++ b/token/token.php @@ -26,7 +26,7 @@ class token{ */ private static function check_handler($handler){ if( !\class_exists($handler) || - !\is_array($parents = \class_parents($handler)) || + !\is_array($parents = \class_implements($handler)) || !\array_search('SYSTEM\TOKEN\token_handler', $parents)){ return false;} return true;}