mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Fixed strtolower php8 deprication warning
This commit is contained in:
@@ -364,7 +364,7 @@ class Request
|
|||||||
*/
|
*/
|
||||||
public function isAjax(): bool
|
public function isAjax(): bool
|
||||||
{
|
{
|
||||||
return (strtolower($this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
|
return (strtolower((string)$this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user