Skip to content

Commit 7dd176a

Browse files
committed
Fixed strtolower php8 deprication warning
1 parent abda9d4 commit 7dd176a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pecee/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public function isFormatAccepted(string $format): bool
364364
*/
365365
public function isAjax(): bool
366366
{
367-
return (strtolower($this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
367+
return (strtolower((string)$this->getHeader('http-x-requested-with')) === 'xmlhttprequest');
368368
}
369369

370370
/**

0 commit comments

Comments
 (0)