Skip to content

Commit 79f47b2

Browse files
committed
Fix PHPStan issue
1 parent 9e518e8 commit 79f47b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Post_Block_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ function ( $idx ) use ( $index_map ) {
14961496
rsort( $original_indices );
14971497

14981498
foreach ( $original_indices as $original_idx ) {
1499-
array_splice( $blocks, $original_idx, 1 );
1499+
array_splice( $blocks, (int) $original_idx, 1 );
15001500
++$removed_count;
15011501
}
15021502
} elseif ( $remove_all && null !== $block_name ) {

0 commit comments

Comments
 (0)