We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abda9d4 commit 7dd176aCopy full SHA for 7dd176a
src/Pecee/Http/Request.php
@@ -364,7 +364,7 @@ public function isFormatAccepted(string $format): bool
364
*/
365
public function isAjax(): bool
366
{
367
- return (strtolower($this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
+ return (strtolower((string)$this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
368
}
369
370
/**
0 commit comments