Fixed strtolower php8 deprication warning

This commit is contained in:
sessingo
2023-02-10 22:47:45 +01:00
parent abda9d468b
commit 7dd176a771

View File

@@ -364,7 +364,7 @@ class Request
*/
public function isAjax(): bool
{
return (strtolower($this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
return (strtolower((string)$this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
}
/**