Skip to content

Commit

Permalink
fix(user): fix __toString compatibility with AbstractModel on Acl Per…
Browse files Browse the repository at this point in the history
…mission and Acl Role
  • Loading branch information
Xavier authored and mcaskill committed Jul 27, 2022
1 parent 9fb6ed0 commit 7ade0c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/user/src/Charcoal/User/Acl/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Permission extends AbstractModel implements CategorizableInterface
*
* @return string
*/
public function __toString()
public function __toString(): string
{
if ($this->ident === null) {
return '';
Expand Down
2 changes: 1 addition & 1 deletion packages/user/src/Charcoal/User/Acl/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Role extends AbstractModel
*
* @return string
*/
public function __toString()
public function __toString(): string
{
if ($this->ident === null) {
return '';
Expand Down

0 comments on commit 7ade0c0

Please sign in to comment.