We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be7e4ba + 78e0b51 commit 619bbc0Copy full SHA for 619bbc0
1 file changed
src/wp-includes/functions.php
@@ -5034,9 +5034,13 @@ function wp_parse_args( $args, $defaults = array() ) {
5034
* @since 5.1.0
5035
*
5036
* @param mixed[]|string $input_list List of values.
5037
- * @return array Array of values. A string is split into a list, while an array
+ * @return array Array of scalar values. A string is split into a list, while an array
5038
* keeps its keys, so the result is not necessarily a list.
5039
- * @phpstan-return ( $input_list is string ? list<string> : array<scalar> )
+ * @phpstan-return (
5040
+ * $input_list is string ? list<string> : (
5041
+ * $input_list is array<string> ? array<string> : array<scalar>
5042
+ * )
5043
5044
*/
5045
function wp_parse_list( $input_list ): array {
5046
if ( ! is_array( $input_list ) ) {
0 commit comments