Skip to content

Commit 9fff3c3

Browse files
Copilotswissspidy
andcommitted
Move @phpstan-ignore to writer array key line
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 2b3ab3f commit 9fff3c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Export_Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,17 @@ static function ( $file_path ) {
188188
try {
189189
if ( $this->stdout ) {
190190
wp_export(
191-
[ // @phpstan-ignore argument.type
191+
[
192192
'filters' => $this->export_args,
193-
'writer' => WP_Export_File_Writer::class,
193+
'writer' => WP_Export_File_Writer::class, // @phpstan-ignore argument.type
194194
'writer_args' => 'php://output',
195195
]
196196
);
197197
} else {
198198
wp_export(
199-
[ // @phpstan-ignore argument.type
199+
[
200200
'filters' => $this->export_args,
201-
'writer' => WP_Export_Split_Files_Writer::class,
201+
'writer' => WP_Export_Split_Files_Writer::class, // @phpstan-ignore argument.type
202202
'writer_args' => [
203203
'max_file_size' => $this->max_file_size,
204204
'destination_directory' => $this->wxr_path,

0 commit comments

Comments
 (0)