Concatenate 2 fields in infoList

Need to formatStateUsing of a textEntry in my infolist by concatenate his value + the value of another field
 ->formatStateUsing(function ($state, Repair $record) {
   $state = PaymentStatus::getLabel($state);
   $dep = $record->dep_payment_status; //value in euro
   return $state . ' ' . $dep; // Partial paid 30€
})       

but i get this error
Non-static method App\Enums\PaymentStatus::getLabel() cannot be called statically
Was this page helpful?