All the PSR-7 ServerRequest properties must be initialized as arrays, as
they can be accessed through getters without be correctly initialized
from the outside application. This can result in type errors.
Resolves: #77989
Releases: master, 7.6
Change-Id: Iba4d48f710e423316910320392e335c4380fd72d
Reviewed-on: https://review.typo3.org/49969
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
/**
* @var array
*/
- protected $attributes;
+ protected $attributes = [];
/**
* @var array
*/
- protected $cookieParams;
+ protected $cookieParams = [];
/**
* @var array
/**
* @var array
*/
- protected $queryParams;
+ protected $queryParams = [];
/**
* @var array
*/
- protected $serverParams;
+ protected $serverParams = [];
/**
* @var array
*/
- protected $uploadedFiles;
+ protected $uploadedFiles = [];
/**
* Constructor, the only place to set all parameters of this Message/Request