Skip to content
Unverified Commit 4ef302c0 authored by Morris Jobke's avatar Morris Jobke
Browse files

Request->getHeader() should always return a string



PHPDoc (of the public API) says that this method returns string but it also returns null, which is not allowed in some method calls. This fixes that behaviour and returns an empty string and fixes all code paths that explicitly checked for null to be still compliant.

Found while enabling the strict_typing for lib/private for the PHP7+ migration.

Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 22b3280a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment