Skip to content

Commit

Permalink
Merge pull request #26 from taylornetwork/25-bug-fix
Browse files Browse the repository at this point in the history
Removed return type in GeneratesUsernames trait
  • Loading branch information
itssamtaylor authored Nov 10, 2020
2 parents 0765df9 + 88ddaeb commit cb569e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GeneratesUsernames.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function generateUsername(): void
*
* Override this method in your model to customize logic.
*
* @return string
* @return string|null
*/
public function getField(): string
public function getField()
{
// Support pre-v2 getName method overrides
if (method_exists($this, 'getName')) {
Expand Down

0 comments on commit cb569e0

Please sign in to comment.