Skip to content

Commit 1a6502e

Browse files
authored
Fix PHP8 deprecation warning about callables (#11135)
1 parent 3058f59 commit 1a6502e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fix
3+
4+
Fix deprecation warning about usage of `parent` in callables.

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)