Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekn committed Dec 19, 2024
1 parent d2545e5 commit cd1fcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/sqlite/class-wp-sqlite-translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3767,7 +3767,7 @@ function ( $column ) use ( $table_name, $key_length_limit ) {
}

// Set the data length to the varchar and text key length
if ( in_array( $this->field_types_translation[ $data_type ], [ 'text', 'blob'], true ) ) {
if ( in_array( $this->field_types_translation[ $data_type ], array( 'text', 'blob' ), true ) ) {
return sprintf( '`%s`(%s)', $column['name'], $data_length );
}
return sprintf( '`%s`', $column['name'] );
Expand Down

0 comments on commit cd1fcba

Please sign in to comment.