Skip to content

Commit f1c9693

Browse files
authored
🐛 Fix method fromString (#46)
1 parent 81654ba commit f1c9693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component/Web/UserAgent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static function getBrowserFromString(string $userAgent): Browser
9595

9696
public static function fromString(string $userAgent): self
9797
{
98-
return new self(
98+
return new static(
9999
device: self::getDeviceFromString($userAgent),
100100
operatingSystem: self::getOperatingSystemFromString($userAgent),
101101
browser: self::getBrowserFromString($userAgent)

0 commit comments

Comments
 (0)