Project

General

Profile

Actions

Bug #77989

closed

PSR-7 ServerRequest array properties must be initialized as arrays

Added by Patrik Karisch over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2016-09-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

All the PSR-7 Request/Response object properties which are expected to be arrays when accessed must be initialized as arrays from the beginning. Otherwise this raises errors, when e.g. queryParams or attributes are accessed, which may not be initialized from outside with the correspoding `with*()` method.

Since the PSR-7 implementation is inspired by `phly/http/` which is superseded by `zend-diactoros`, it's perfectly to fix this, as this is fixed in diactoros too (Comparing the abandoned phly implementation against current diactoros).

Actions

Also available in: Atom PDF