From 0f43c0fe51489dd97bb3f38e1616337af827fa53 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 14 Apr 2018 23:00:47 +0100 Subject: [PATCH] Make checkstyle happy with matching a number or a string --- src/Support/RecursiveMenuIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/RecursiveMenuIterator.php b/src/Support/RecursiveMenuIterator.php index d825328..7e1e225 100644 --- a/src/Support/RecursiveMenuIterator.php +++ b/src/Support/RecursiveMenuIterator.php @@ -33,7 +33,7 @@ class RecursiveMenuIterator implements RecursiveIterator // only have nodes without a parent at the top level of the tree $this->items = collect($itemsArray)->filter(function ($item) { - return $item->menu_item_parent === 0; + return $item->menu_item_parent === 0 || $item->menu_item_parent === '0'; })->reverse()->values(); } else { $this->items = $menu; -- libgit2 1.7.2