I tried quiet few different methods to work around this function usort so it doesn’t get called statically but PHP errors are still coming up so finally posting here hopefully you can help me:)
When client is filing a Billing claim: Fees > Billing Manager > Billing Status = Unbilled > Check off Patient Encounter(s) > HCFA Form > CMS 1500 PDF| incl FORM | TEXT > Validate and Clear | Validate Form.
Screen throws bunch of error messages incl. "PHP Deprecated: usort() expects parameter 2 to be a valid callback, non-static method OpenEMR\Billing\HCFA_Info::cmp_hcfa_info() should not be called statically in [OpenEMRdir]/src/Billing/HCFA_1500.php on line 119 " This HCFA Form issue unfortunately happens to my client all the time now.
User Issue: HCFA/CMS form files do get created on the server which then I have to deliver manually to my client though since a user is not capable to save these CMS 1500 files to his/her desktop due to received on-screen PHP Deprecated / usort errors.
HCFA_1500.php > Line 119 :
// Sort the entries to put them in the page base sequence.
usort($hcfa_entries, array(‘OpenEMR\Billing\HCFA_Info’, ‘cmp_hcfa_info’));
Chrome 76.0.3809.100 /Firefox 68.0.2
Centos 7.4 / Linux / PHP 7.2| 7.3
Billing Manger GUI > View Log > there are No errors:
Generating HCFA claim 50-1100 for [PATIENT NAME} on 2019-08-23 10:11. error_log output: PHP Deprecated: usort() expects parameter 2 to be a valid callback, non-static method OpenEMR\Billing\HCFA_Info::cmp_hcfa_info() should not be called statically in [OpenEMRdir]/src/Billing/HCFA_1500.php on line 119 Any help, lead on this issue is appreciated. Thank you.