vimeo/psalm

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

Open

#7,055 创建于 2021年12月4日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)PHP (668 fork)batch import
Help wantedeasy problemsenhancementtype providers

仓库指标

Star
 (5,369 star)
PR 合并指标
 (平均合并 3天 12小时) (30 天内合并 5 个 PR)

描述

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

贡献者指南