diff --git a/src/NestedSet.php b/src/NestedSet.php index 8ec8e02..4c7c106 100644 --- a/src/NestedSet.php +++ b/src/NestedSet.php @@ -77,7 +77,7 @@ public static function getDefaultColumns() */ public static function isNode($node) { - return is_object($node) && in_array(NodeTrait::class, (array)$node); + return is_object($node) && array_key_exists(NodeTrait::class, class_uses($node)); } -} \ No newline at end of file +}