fix(core): 🐛 only pass string into str replace

This commit is contained in:
alistair3149 2024-05-15 09:40:25 -04:00 committed by GitHub
parent 1827a1b5c9
commit 84a65a303b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ class CitizenComponentUserInfo implements CitizenComponent {
}
$label = $this->localizer->msg( 'usereditcount' )->numParams( $edits );
$label = str_replace( $edits, '', $label );
$label = str_replace( (string)$edits, '', $label );
return [
'count' => number_format( $edits, 0 ),