src/ErrorHandler.php
public function addFormatters(FormatterInterface ...$formatters): self
    {
        foreach ($formatters as $formatter) {
            foreach ($formatter->contentTypes() as $contentType) {
                $this->formatters[$contentType] = $formatter;
            }
        }

        return $this;
    }
public function addFormatters(FormatterInterface ...$formatters): self
    {
        foreach ($formatters as $formatter) {
            foreach ($formatter->contentTypes() as $contentType) {
                $this->formatters[$contentType] = $formatter;
            }
        }

        return $this;
    }
public function addFormatters ( FormatterInterface ... $ formatters ) : self { foreach ( $ formatters as $ formatter ) { foreach ( $ formatter -> contentTypes ( ) as $ contentType ) { $ this -> formatters [ $ contentType ] = $ formatter ; } } return $ this ; }
Add additional error formatters
Add additional error formatters