We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd0d3a commit 6b25134Copy full SHA for 6b25134
tests/phpunit/tests/rest-api/rest-attachments-controller.php
@@ -3118,7 +3118,7 @@ public function test_edit_image_wp_slash_with_object_cast() {
3118
// Mock wp_insert_attachment to capture the data being passed.
3119
add_filter(
3120
'wp_insert_attachment_data',
3121
- function ( $data ) use ( &$captured_data ) {
+ static function ( $data ) use ( &$captured_data ) {
3122
$captured_data = $data;
3123
return $data;
3124
},
0 commit comments