Skip to content

Commit 979e31a

Browse files
committed
phpstan: conditional returns
1 parent 8d6e0c2 commit 979e31a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wp-includes/user.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,9 @@ function get_users( $args = array() ) {
893893
* @type string $exclude An array, comma-, or space-separated list of user IDs to exclude. Default empty.
894894
* @type string $include An array, comma-, or space-separated list of user IDs to include. Default empty.
895895
* }
896-
* @return string|null The output if echo is false. Otherwise null.
896+
* @return string|void The output if echo is false. Otherwise void.
897+
*
898+
* @phpstan-return ( $args is array{echo:false}&array ? string : void )
897899
*/
898900
function wp_list_users( $args = array() ) {
899901
$defaults = array(

0 commit comments

Comments
 (0)