Skip to content

Commit

Permalink
fix(core): 🐛 turn message into string before str_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 authored May 15, 2024
1 parent 84a65a3 commit e5fef2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Components/CitizenComponentUserInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private function getUserEditCount(): ?array {
return null;
}

$label = $this->localizer->msg( 'usereditcount' )->numParams( $edits );
$label = $this->localizer->msg( 'usereditcount' )->numParams( $edits )->text();
$label = str_replace( (string)$edits, '', $label );

return [
Expand Down

0 comments on commit e5fef2a

Please sign in to comment.