vimeo/psalm

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

Open

#7 055 ouverte le 4 déc. 2021

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)PHP (668 forks)batch import
Help wantedeasy problemsenhancementtype providers

Métriques du dépôt

Stars
 (5 369 stars)
Métriques de merge PR
 (Merge moyen 3j 12h) (5 PRs mergées en 30 j)

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

Guide contributeur