mirror of
https://github.com/getgrav/grav.git
synced 2025-12-05 23:39:58 +01: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