for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nofw\Error;
/**
* This Handler can be used to avoid conditional calls.
*
* Error monitoring should always be optional, and if no handler is provided to your
* library creating a NullHandler instance to have something to throw logs at
* is a good way to avoid littering your code with `if ($this->errorHandler) { }`
* blocks.
* @author Márk Sági-Kazár <[email protected]>
*/
final class NullErrorHandler implements ErrorHandler
{
* {@inheritdoc}
public function handle(\Throwable $t, array $context = []): void
// noop
}