Skip to content

Commit 23a423f

Browse files
Copilotswissspidy
andcommitted
Fix PHPStan ignore comment format to use @phpstan-ignore
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 8954859 commit 23a423f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Export_Command.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,23 @@ public function __invoke( $_, $assoc_args ) {
181181
'wp_export_new_file',
182182
static function ( $file_path ) {
183183
WP_CLI::log( sprintf( 'Writing to file %s', $file_path ) );
184-
Utils\wp_clear_object_cache(); // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.wp_clear_object_cacheDeprecatedRemoved phpstan-ignore-line
184+
Utils\wp_clear_object_cache(); // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.wp_clear_object_cacheDeprecatedRemoved @phpstan-ignore-line
185185
}
186186
);
187187

188188
try {
189189
if ( $this->stdout ) {
190-
wp_export( // phpstan-ignore-line
190+
/** @phpstan-ignore argument.type */
191+
wp_export(
191192
[
192193
'filters' => $this->export_args,
193194
'writer' => WP_Export_File_Writer::class,
194195
'writer_args' => 'php://output',
195196
]
196197
);
197198
} else {
198-
wp_export( // phpstan-ignore-line
199+
/** @phpstan-ignore argument.type */
200+
wp_export(
199201
[
200202
'filters' => $this->export_args,
201203
'writer' => WP_Export_Split_Files_Writer::class,

0 commit comments

Comments
 (0)