Skip to content

Commit

Permalink
change method
Browse files Browse the repository at this point in the history
returns error message now
  • Loading branch information
alecrabbit committed Apr 26, 2019
1 parent 1a5d0e1 commit 3dcb8c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Traits/ForReports/Core/AbstractFormatter.php
Expand Up @@ -20,11 +20,11 @@ abstract public function process(Formattable $data): string;
/**
* @param Formattable $data
* @param string $class
* @return \Throwable
* @return string
*/
protected function preparedException(Formattable $data, string $class): \Throwable
protected function errorMessage(Formattable $data, string $class): string
{
return
new \InvalidArgumentException($class . ' expected, ' . get_class($data) . ' given');
$class . ' expected, ' . get_class($data) . ' given.';
}
}

0 comments on commit 3dcb8c2

Please sign in to comment.