vimeo/psalm

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

Ouverte

#6 866 ouverte le 8 nov. 2021

 (5 commentaires) (0 réaction) (0 personne assignée)PHP (668 forks)batch import
Help wantedbugeasy problemsgood first issueinternal stubs/callmap

Métriques du dépôt

Stars
 (5 369 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur