Replace array cast in FormTrait::getFiles()

This commit is contained in:
Matias Griese
2019-01-25 10:42:21 +02:00
parent 82e5df960d
commit 0700e4bfdb

View File

@@ -99,7 +99,7 @@ trait FormTrait
*/
public function getFiles(): array
{
return (array) $this->files;
return $this->files ?? [];
}
public function getValue(string $name)