Skip to content

Commit 75827ee

Browse files
committed
Update gnsr.php
1 parent 5ebaa40 commit 75827ee

File tree

1 file changed

+6
-1
lines changed
  • tests/PHPStan/Analyser/Generator/data

1 file changed

+6
-1
lines changed

tests/PHPStan/Analyser/Generator/data/gnsr.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,16 @@ function doCast() {
247247
assertType("'1'", (string) $a);
248248
}
249249

250-
function doInterpolatedString() {
250+
/**
251+
* @param '1' $b
252+
*/
253+
function doInterpolatedString(string $b) {
251254
$a = '1';
252255

253256
assertType("'1'", "$a");
254257
assertNativeType("'1'", "$a");
258+
assertType("'1'", "$b");
259+
assertNativeType("string", "$b");
255260
}
256261

257262

0 commit comments

Comments
 (0)