walk_page_tree issue - cast array to object to fix

( ! ) Warning: Attempt to read property "before" on array in C:\WinNMP\WWW\wordpress\wp-includes\class-walker-nav-menu.php on line 273

$walker->walk expects an object but
walk_page_tree passes an array.