for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace idimsh\PhpInternalsMocker\Exception;
/**
* @codeCoverageIgnore
*/
class Exception extends \Exception
{
protected static function getCustomTrace(): string
$trace = (new \Exception())->getTraceAsString();
$trace = \explode("\n", $trace);
\array_shift($trace);
return \implode("\n", $trace);
}