Fix warning "references should be passed by variable only"

This commit is contained in:
Johannes Meyer 2014-10-01 09:17:48 +02:00
parent 08d259eccf
commit 8f79e0a713
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,8 @@ class Wizard
*/
protected function isLastPage(Form $page)
{
return $page->getName() === end($this->getPages())->getName();
$pages = $this->getPages();
return $page->getName() === end($pages)->getName();
}
/**