/**
* Override this method if you want to define more error enhancers.
*
* @return ErrorEnhancerInterface[]
*/
protected function getErrorEnhancers(): iterable
{ return [ new UndefinedFunctionErrorEnhancer(),
new UndefinedMethodErrorEnhancer(),
new ClassNotFoundErrorEnhancer(),
];
} /**
* Cleans the trace by removing function arguments and the frames added by the error handler and DebugClassLoader.
*/
private function cleanTrace(array
$backtrace, int
$type, string &
$file, int &
$line, bool
$throw): array
{ $lightTrace =
$backtrace;
for ($i = 0;
isset($backtrace[$i]); ++
$i) {