nunomaduro/collision

Memory exhausted error

wq9578 opened this issue · 0 comments

Memory is exhausted as a consequence after a failure in mPDF: mpdf/mpdf#1789 (comment)

The error message is:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in [...]/vendor/nunomaduro/collision/src/Highlighter.php on line 212

Running mPDF separately doesn't reproduce memory exhaustion, so it seems to be caused by the framework, maybe by the nunomaduro/collision package which throws the error.

I am using Laravel v9.45.1 with PHP v8.2.0.