Skip to content

Commit c5a4041

Browse files
Fix test
1 parent 91f1650 commit c5a4041

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Analyser/MutatingScope.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
use PHPStan\Type\Generic\TemplateTypeHelper;
107107
use PHPStan\Type\Generic\TemplateTypeMap;
108108
use PHPStan\Type\Generic\TemplateTypeVarianceMap;
109-
use PHPStan\Type\Generic\TemplateUnionType;
110109
use PHPStan\Type\IntegerRangeType;
111110
use PHPStan\Type\IntegerType;
112111
use PHPStan\Type\IntersectionType;

tests/PHPStan/Analyser/nsrt/bug-6609-83.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function modify2(\DateTimeInterface $date) {
5050
*/
5151
function modify3(\DateTimeInterface $date, string $s) {
5252
$date = $date->modify($s);
53-
assertType('DateTime|DateTimeImmutable', $date);
53+
assertType('T of DateTime|DateTimeImmutable (method Bug6609Php83\Foo::modify3(), argument)', $date);
5454

5555
return $date;
5656
}

tests/PHPStan/Analyser/nsrt/bug-6609.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function modify2(\DateTimeInterface $date) {
5050
*/
5151
function modify3(\DateTimeInterface $date, string $s) {
5252
$date = $date->modify($s);
53-
assertType('(DateTime|DateTimeImmutable|false)', $date);
53+
assertType('((T of DateTime|DateTimeImmutable (method Bug6609\Foo::modify3(), argument))|false)', $date);
5454

5555
return $date;
5656
}

0 commit comments

Comments
 (0)