Skip to content

Commit ec421c9

Browse files
authored
Update Server.php (#9)
Replace default values of some variables from null to empty string
1 parent e6ec4cb commit ec421c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Server.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ protected function needsCompile($out, &$etag)
166166
/**
167167
* Get If-Modified-Since header from client request
168168
*
169-
* @return string|null
169+
* @return string
170170
*/
171171
protected function getIfModifiedSinceHeader()
172172
{
173-
$modifiedSince = null;
173+
$modifiedSince = '';
174174

175175
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
176176
$modifiedSince = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
@@ -186,11 +186,11 @@ protected function getIfModifiedSinceHeader()
186186
/**
187187
* Get If-None-Match header from client request
188188
*
189-
* @return string|null
189+
* @return string
190190
*/
191191
protected function getIfNoneMatchHeader()
192192
{
193-
$noneMatch = null;
193+
$noneMatch = '';
194194

195195
if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
196196
$noneMatch = $_SERVER['HTTP_IF_NONE_MATCH'];

0 commit comments

Comments
 (0)