getMessage(), $file->getPathname(), 0); } public function __toString(): string { return sprintf( '[%s] %s: %s', strtoupper($this->getType()), $this->getFile(), $this->getError() ); } }