Skip to content

Commit e16b4a9

Browse files
committed
Prevent Exception in tests
1 parent 7948a0b commit e16b4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sprinkle-core/app/src/Twig/Extensions/UserAgentExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getGlobals(): array
6666
*/
6767
protected function getUserAgent(): array
6868
{
69-
$parser = $this->parser->parse();
69+
$parser = $this->parser->parse($_SERVER['HTTP_USER_AGENT'] ?? '');
7070

7171
return [
7272
'ip' => $this->getUserIp(),

0 commit comments

Comments
 (0)