You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -444,7 +444,11 @@ public function parse(): ?array
444
444
}
445
445
446
446
// This Exception should never be thrown. If so a defined browser name is missing in $availableBrowsers
447
-
thrownew \Exception(sprintf('Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s', $name, $this->userAgent)); // @codeCoverageIgnore
447
+
thrownew \Exception(sprintf(
448
+
'Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s',
// This Exception should never be thrown. If so a defined browser name is missing in $availableEngines
91
-
thrownew \Exception(sprintf('Detected browser engine was not found in $availableEngines. Tried to parse user agent: %s', $this->userAgent)); // @codeCoverageIgnore
92
+
thrownew \Exception(sprintf(
93
+
'Detected browser engine was not found in $availableEngines. Tried to parse user agent: %s',
Copy file name to clipboardExpand all lines: Parser/Device/AbstractDeviceParser.php
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -866,7 +866,13 @@ public function parse(): ?array
866
866
867
867
if (false === $brandId) {
868
868
// This Exception should never be thrown. If so a defined brand name is missing in $deviceBrands
869
-
thrownew \Exception(sprintf("The brand with name '%s' should be listed in the deviceBrands array. Tried to parse user agent: %s", $brand, $this->userAgent)); // @codeCoverageIgnore
869
+
thrownew \Exception(
870
+
sprintf(
871
+
"The brand name '%s' needs to be in deviceBrands array. Tried parsing user agent: %s",
0 commit comments