vimeo/psalm

implode(<string>, non-empty-list<string>) doesn't always result in non-empty-string

Aberta

#6.866 aberto em 8 de nov. de 2021

 (5 comentários) (0 reação) (0 responsável)PHP (668 forks)batch import
Help wantedbugeasy problemsgood first issueinternal stubs/callmap

Métricas do repositório

Stars
 (5.369 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

https://psalm.dev/r/9b7a45c338

The weird edge case of implode('asdf', ['']); can result in an empty string. Similarly if the first argument is an empty string then an array of any amount of empty strings will also produce an empty string

Guia do colaborador