Skip to content

Commit

Permalink
Merge pull request #293 from simplethings/tolry-patch-1
Browse files Browse the repository at this point in the history
fix-issue-286
  • Loading branch information
DavidBadura authored Jul 24, 2017
2 parents 29c8142 + 0169c78 commit ee71ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimpleThings/EntityAudit/AuditConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function getCurrentUsername()
{
$callable = $this->usernameCallable;

return $callable ? $callable() : "";
return (string) ($callable ? $callable() : "");
}

public function setUsernameCallable($usernameCallable)
Expand Down

0 comments on commit ee71ea6

Please sign in to comment.