for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Protoku\Exceptions\Formatters;
use Protoku\Exceptions\Interfaces\FormatterInterface;
class DefaultFormatter implements FormatterInterface
{
public function format(\Throwable $e): array
return [
'message' => $e->getMessage(),
'file' => $e->getFile(),
'line' => $e->getLine(),
'trace' => $e->getTrace(),
];
}