vimeo/psalm

implode(<non-false-string>, array) should produce non-falsy-string

Aberta

#7.055 aberto em 4 de dez. de 2021

 (2 comentários) (0 reação) (0 responsável)PHP (668 forks)batch import
Help wantedeasy problemsenhancementtype providers

Métricas do repositório

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

Description

When the first argument is a non-falsy-string and the second argument has at least two elements, then the result is guaranteed to be at least non-falsy-string.

<?php

if(implode(' ', ['',''])) echo 1;

https://psalm.dev/r/19514cf5db

Guia do colaborador