Skip to content

Commit 45e2638

Browse files
committed
strict type fix
1 parent efc3c0a commit 45e2638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function __destruct()
221221
&& isset($_SERVER['HTTP_USER_AGENT'])
222222
&& strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ') !== false
223223
&& in_array($this->code, [400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505], true)
224-
&& preg_match('#^text/html(?:;|$)#', $this->getHeader('Content-Type'))
224+
&& preg_match('#^text/html(?:;|$)#', (string) $this->getHeader('Content-Type'))
225225
) {
226226
echo Nette\Utils\Random::generate(2000, " \t\r\n"); // sends invisible garbage for IE
227227
self::$fixIE = false;

0 commit comments

Comments
 (0)