Skip to content

Commit

Permalink
Merge pull request #16 from Omranic/master
Browse files Browse the repository at this point in the history
Fix `divider` missing parameter
  • Loading branch information
nWidart committed Dec 14, 2017
2 parents ffebe35 + 5bdf928 commit d207e38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MenuItem.php
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 d207e38

Please sign in to comment.