Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
sypets committed Dec 10, 2024
1 parent ed79562 commit 2f85e33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Events/FormControllerFormActionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,18 @@ public function getFormController(): FormController
public function assign(string $key, mixed $value)
{
$this->view->assign($key, $value);
return $this->view;
}

/**
* Add multiple variables to the view data collection
*
* @param array $values array in the format array(key1 => value1, key2 => value2)
* @param array<string,mixed> $values array in the format array(key1 => value1, key2 => value2)
* @return ViewInterface an instance of $this, to enable chaining
*/
public function assignMultiple(array $values)
{
$this->view->assignMultiple($values);
return $this->view;
}
}

0 comments on commit 2f85e33

Please sign in to comment.