From 197a66a9a6ceed9e69bfca5d5adf202c0f6c1ff7 Mon Sep 17 00:00:00 2001 From: Yohanes Candrajaya Date: Tue, 17 Oct 2017 10:15:25 +0700 Subject: [PATCH] fixes #49 --- RelationTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RelationTrait.php b/RelationTrait.php index 4652d38..16b9801 100644 --- a/RelationTrait.php +++ b/RelationTrait.php @@ -491,7 +491,7 @@ public function getRelationData() $stack[$name]['link'] = $rel->link; $stack[$name]['via'] = $rel->via; } - } catch (ErrorException $exc) { + } catch (\Exception $exc) { //if method name can't be called, } }