Skip to content

Commit

Permalink
Fix divider missing parameter
Browse files Browse the repository at this point in the history
`divider` method should be compatible with `addDivider`
  • Loading branch information
Omranic committed Dec 14, 2017
1 parent ffebe35 commit 5bdf928
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,13 @@ public function addDivider($order = null)
/**
* Alias method instead "addDivider".
*
* @param int $order
*
* @return MenuItem
*/
public function divider()
public function divider($order = null)
{
return $this->addDivider();
return $this->addDivider($order);
}

/**
Expand Down

0 comments on commit 5bdf928

Please sign in to comment.