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
@@ -370,7 +372,11 @@ public function parse(): ?array
370
372
}
371
373
372
374
// This Exception should never be thrown. If so a defined browser name is missing in $availableBrowsers
373
-
thrownew \Exception(sprintf('Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s', $name, $this->userAgent)); // @codeCoverageIgnore
375
+
thrownew \Exception(sprintf(
376
+
'Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s',
Copy file name to clipboardexpand all lines: Parser/Client/Browser/Engine.php
+4-1
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,9 @@ public function parse(): ?array
85
85
}
86
86
87
87
// This Exception should never be thrown. If so a defined browser name is missing in $availableEngines
88
-
thrownew \Exception(sprintf('Detected browser engine was not found in $availableEngines. Tried to parse user agent: %s', $this->userAgent)); // @codeCoverageIgnore
88
+
thrownew \Exception(sprintf(
89
+
'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-1
Original file line number
Diff line number
Diff line change
@@ -735,7 +735,13 @@ public function parse(): ?array
735
735
736
736
if (false === $brandId) {
737
737
// This Exception should never be thrown. If so a defined brand name is missing in $deviceBrands
738
-
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
738
+
thrownew \Exception(
739
+
sprintf(
740
+
"The brand name '%s' needs to be in deviceBrands array. Tried parsing user agent: %s",
0 commit comments