Skip to content

Commit

Permalink
Update UserStatuses.php
Browse files Browse the repository at this point in the history
- Fixed calling non-static method statically
  • Loading branch information
muhammedjailam committed Mar 16, 2024
1 parent 0d058a0 commit c84753b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Enums/UserStatuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public static function messages(): array
];
}

public static function getMessage(): string
public static function getMessage($status): string
{
return self::messages()[$this->value];
return self::messages()[$status];
}

public static function getMessageFromKey(string $key): string
Expand Down

0 comments on commit c84753b

Please sign in to comment.