Fixed backwards incompatibility: Form::getData($name)

This commit is contained in:
Matias Griese
2019-01-18 14:12:28 +02:00
parent b94631533d
commit bd27d6fe8c

View File

@@ -89,9 +89,9 @@ trait FormTrait
return '';
}
public function getData(): \ArrayAccess
public function getData(string $name = null)
{
return $this->data;
return null !== $name ? $this->data[$name] : $this->data;
}
/**