mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed backwards incompatibility: Form::getData($name)
This commit is contained in:
parent
b94631533d
commit
bd27d6fe8c
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user