Skip to content

Commit e3bd585

Browse files
authored
Use more specific return type in PageScreenshot::getException (#682)
1 parent 7c64506 commit e3bd585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PageUtils/PageScreenshot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PageScreenshot extends AbstractBinaryInput
2020
*
2121
* @internal
2222
*/
23-
protected function getException(string $message): \Exception
23+
protected function getException(string $message): ScreenshotFailed
2424
{
2525
return new ScreenshotFailed(
2626
\sprintf('Cannot make a screenshot. Reason : %s', $message)

0 commit comments

Comments
 (0)