mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Replace array cast in FormTrait::getFiles()
This commit is contained in:
parent
82e5df960d
commit
0700e4bfdb
|
|
@ -99,7 +99,7 @@ trait FormTrait
|
|||
*/
|
||||
public function getFiles(): array
|
||||
{
|
||||
return (array) $this->files;
|
||||
return $this->files ?? [];
|
||||
}
|
||||
|
||||
public function getValue(string $name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user