Skip to content

Commit d6822c4

Browse files
authored
[9.x] Fix error introduced in #40701 (#41955)
Hey, this PR just fixes a small bug in the change not render exception inside a streamed download. Currently it accesses the `->message` property of a `Throwable`, which is not defined in the interface and is (in my case) protected, which results in a new error. This PR just changes that to the defined `->getMessage()` of a `Throwable`.
1 parent 83be3c8 commit d6822c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Routing/Exceptions/StreamedResponseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(Throwable $originalException)
2525
{
2626
$this->originalException = $originalException;
2727

28-
parent::__construct($originalException->message);
28+
parent::__construct($originalException->getMessage());
2929
}
3030

3131
/**

0 commit comments

Comments
 (0)