Skip to content

Commit ca1e3da

Browse files
committed
Fix PHP8 deprecation warning about callables
1 parent 3058f59 commit ca1e3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/admin/tasks/class-wc-payments-task-disputes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function ( $total, $dispute ) {
157157
*/
158158
public function get_parent_id() {
159159
// WC 6.4.0 compatibility.
160-
if ( is_callable( 'parent::get_parent_id' ) ) {
160+
if ( is_callable( [ parent::class, 'get_parent_id' ] ) ) {
161161
return parent::get_parent_id();
162162
}
163163

0 commit comments

Comments
 (0)