shouldProcessMinify clashing with Laravel Spark
bug
Hello,
We're having problems downloading invoices via Spark.
In Middleware/Minifier.php: 108 (around here) it's checking:
if ($response->original instanceof View) {
When a route has no reponse body, the 'original' key isn't set and causes a PHP error to throw.
I added a check locally and the issue disapeared:
if (isset($response->original) && $response->original instanceof View) {
I tried using the 'ignore' config property, however the ignore() check is performed AFTER the above check crashes PHP.
Would it be possible to have this fix put in? I'm in the middle of a project and don't have time to create a pull request, but thought I'd put a description here.
0 条评论