Skip to content

Commit 81ff25a

Browse files
Fix
1 parent eb07c6a commit 81ff25a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/PHPStan/Rules/Methods/CallMethodsRuleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,12 +3617,12 @@ public function testBug3589(): void
36173617

36183618
$this->analyse([__DIR__ . '/data/bug-3589.php'], [
36193619
[
3620-
'Parameter #1 $fooId of method FooRepository::load() expects Id<Foo>, Id<Bar> given.',
3621-
33,
3620+
'Parameter #1 $fooId of method Bug3589\FooRepository::load() expects Bug3589\Id<Bug3589\Foo>, Bug3589\Id<Bug3589\Bar> given.',
3621+
35,
36223622
],
36233623
[
3624-
'Parameter #1 $fooId of method FooRepository::load() expects Id<Foo>, Id<mixed> given.',
3625-
39,
3624+
'Parameter #1 $fooId of method Bug3589\FooRepository::load() expects Bug3589\Id<Bug3589\Foo>, Bug3589\Id<mixed> given.',
3625+
41,
36263626
],
36273627
]);
36283628
}

tests/PHPStan/Rules/Methods/data/bug-3589.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php declare(strict_types = 1);
22

3+
namespace Bug3589;
4+
35
class Foo{}
46
class Bar{}
57

0 commit comments

Comments
 (0)