DataTypeDatalist: fix typo

This commit is contained in:
Thomas Gelf 2019-05-20 11:06:08 +02:00
parent a80bdd833e
commit 3e80115692
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class DataTypeDatalist extends DataTypeHook
}
if ($behavior === 'suggest_extend') {
$form->callOnSucess(function (DirectorForm $form) use ($name, $listId) {
$form->callOnSuccess(function (DirectorForm $form) use ($name, $listId) {
$value = (array) $form->getValue($name);
if ($value === null) {
return;

View File

@ -481,7 +481,7 @@ abstract class QuickForm extends QuickBaseForm
* @param callable $callable
* @return $this
*/
public function callOnSucess($callable)
public function callOnSuccess($callable)
{
if (! is_callable($callable)) {
throw new InvalidArgumentException(