🏡 index : ~doyle/koselig.git

author Jordan Doyle <jordan@doyle.wf> 2018-04-14 23:00:47.0 +01:00:00
committer GitHub <noreply@github.com> 2018-04-14 23:00:47.0 +01:00:00
commit
0f43c0fe51489dd97bb3f38e1616337af827fa53 [patch]
tree
e11c744e89f36b405a4e27537778965be78ea06e
parent
0cd5c56965abd30232399a69d0dc499b3789c42b
download
0f43c0fe51489dd97bb3f38e1616337af827fa53.tar.gz

Make checkstyle happy with matching a number or a string



Diff

 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
+++ a/src/Support/RecursiveMenuIterator.php
@@ -33,7 +33,7 @@

            // 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;