mirror of
https://github.com/getgrav/grav.git
synced 2026-04-12 23:57:36 +02:00
Replace array cast in FormTrait::getFiles()
This commit is contained in:
@@ -99,7 +99,7 @@ trait FormTrait
|
||||
*/
|
||||
public function getFiles(): array
|
||||
{
|
||||
return (array) $this->files;
|
||||
return $this->files ?? [];
|
||||
}
|
||||
|
||||
public function getValue(string $name)
|
||||
|
||||
Reference in New Issue
Block a user