mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Experiment with implode literal tracking
This commit is contained in:
parent
4941b9e5d2
commit
3140654a44
@ -571,7 +571,7 @@ function rtrim(string $str, string $character_mask = " \t\n\r\0\x0B") : string {
|
||||
* @return (
|
||||
* $glue is non-empty-string
|
||||
* ? ($pieces is non-empty-array
|
||||
* ? non-empty-string
|
||||
* ? ($pieces is array<literal-string> ? non-empty-literal-string : non-empty-string)
|
||||
* : string)
|
||||
* : string
|
||||
* )
|
||||
|
@ -919,11 +919,10 @@ class ArrayFunctionCallTest extends TestCase
|
||||
],
|
||||
'implodeNonEmptyArrayAndString' => [
|
||||
'<?php
|
||||
/** @var non-empty-array<non-empty-string> */
|
||||
$l = ["a", "b"];
|
||||
$a = implode(":", $l);',
|
||||
[
|
||||
'$a===' => 'non-empty-string',
|
||||
'$a===' => 'non-empty-literal-string',
|
||||
]
|
||||
],
|
||||
'key' => [
|
||||
|
Loading…
Reference in New Issue
Block a user