Skip to content

Commit

Permalink
Exception->getName() isn't standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce aldridge authored Dec 5, 2019
1 parent cf7fbb2 commit b4c8b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function handleError(\Exception $exception)
{
echo sprintf(
"%s: %s \n\n Stack Trace: \n %s",
$exception->getName(),
method_exists($exception, 'getName') ? $exception->getName() : get_class($exception),
$exception->getMessage(),
$exception->getTraceAsString()
);
Expand Down

0 comments on commit b4c8b76

Please sign in to comment.