Skip to content

Commit 205e138

Browse files
committed
amend docblock to fix static analysis
1 parent e530895 commit 205e138

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Schema/Traits/Custom_Table_Query_Methods.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,8 @@ public static function get_first_by( string $column, $value, string $operator =
743743
*
744744
* @since 3.0.0
745745
*
746-
* @param string $column The column to prepare the value for.
747-
* @param mixed $value The value to prepare.
746+
* @param string $column The column to prepare the value for.
747+
* @param null|string|int|float|bool|DateTimeInterface|array<null|string|int|float|bool|DateTimeInterface> $value The value to prepare.
748748
*
749749
* @return array{0: mixed, 1: string} The prepared value and placeholder.
750750
*
@@ -803,7 +803,7 @@ private static function prepare_value_for_query( string $column, $value ): array
803803
throw new InvalidArgumentException( "Unsupported column type: $column_type." );
804804
}
805805

806-
if ( is_array( $value ) && empty( $value ) ) {
806+
if ( is_array( $value ) && ! $value ) {
807807
return [ null, '(NULL)' ];
808808
}
809809

0 commit comments

Comments
 (0)