Fix warning "references should be passed by variable only"
This commit is contained in:
parent
08d259eccf
commit
8f79e0a713
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue