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, } }