Skip to content

Commit 94a3934

Browse files
committed
fixed return types
1 parent b46e7fd commit 94a3934

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/ErrorFormatter/GifFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ protected function format(Throwable $error): string
1515
{
1616
ob_start();
1717
imagegif($this->createImage($error));
18-
return ob_get_clean();
18+
return (string) ob_get_clean();
1919
}
2020
}

src/ErrorFormatter/JpegFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ protected function format(Throwable $error): string
1515
{
1616
ob_start();
1717
imagejpeg($this->createImage($error));
18-
return ob_get_clean();
18+
return (string) ob_get_clean();
1919
}
2020
}

src/ErrorFormatter/JsonFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ protected function format(Throwable $error): string
1919
'message' => $error->getMessage(),
2020
];
2121

22-
return json_encode($json);
22+
return (string) json_encode($json);
2323
}
2424
}

src/ErrorFormatter/PngFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ protected function format(Throwable $error): string
1515
{
1616
ob_start();
1717
imagepng($this->createImage($error));
18-
return ob_get_clean();
18+
return (string) ob_get_clean();
1919
}
2020
}

0 commit comments

Comments
 (0)