How to catch FatalErrorException exception and return information correctly by lumen

I judge in the render method of Handler that FatalErrorException returns an array


when an exception occurs.

there are other error messages on the returned array, but should you only return the array when catching an exception? how to solve this situation


at first glance, I don't think the if statement block has been executed.

Menu