mirror of
https://github.com/getgrav/grav.git
synced 2025-12-05 15:29:57 +01:00
Fixed backwards incompatibility: Form::getData($name)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user