Closed erikn69 closed 2 years ago
https://github.com/dompdf/dompdf/blob/116404a740f937cb40534fa559468206e5bf9023/src/Dompdf.php#L1236-L1246
If you use getDomPDF for setHttpContext, you can't keep concatenating methods
getDomPDF
setHttpContext
Example:
return PDF::loadView('pdf') ->setHttpContext(['ssl'=>['verify_peer'=>false, 'verify_peer_name'=>false, 'allow_self_signed'=>true]]) ->stream();
Before:
$pdf = PDF::loadView('pdf'); $pdf->getDomPDF() ->setHttpContext( stream_context_create(['ssl'=>['verify_peer'=>false, 'verify_peer_name'=>false, 'allow_self_signed'=>true]]) ); return $pdf->stream();
Fixed with #892
https://github.com/dompdf/dompdf/blob/116404a740f937cb40534fa559468206e5bf9023/src/Dompdf.php#L1236-L1246
If you use
getDomPDF
forsetHttpContext
, you can't keep concatenating methodsExample:
Before: