Skip to content

Commit f57366a

Browse files
boesingondrejmirtes
authored andcommitted
Use an own argument called ae and assert it implements interface Baz
1 parent 7bed9c4 commit f57366a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function testExtension(): void
154154
119,
155155
],
156156
[
157-
'Variable $q is: PHPStan\Type\WebMozartAssert\Baz&PHPStan\Type\WebMozartAssert\Foo',
157+
'Variable $ae is: PHPStan\Type\WebMozartAssert\Baz',
158158
122,
159159
],
160160
]);

tests/Type/WebMozartAssert/data/data.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Foo
88
{
99

10-
public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n, $o, $p, $r, $s, ?int $t, ?int $u, $x, $aa, array $ab, $ac, $ad)
10+
public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n, $o, $p, $r, $s, ?int $t, ?int $u, $x, $aa, array $ab, $ac, $ad, $ae)
1111
{
1212
$a;
1313

@@ -118,13 +118,13 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
118118
Assert::integerish($ad);
119119
$ad;
120120

121-
Assert::implementsInterface($q, Baz::class);
122-
$q;
121+
Assert::implementsInterface($ae, Baz::class);
122+
$ae;
123123
}
124124

125125
}
126126

127-
class Bar implements Baz
127+
class Bar
128128
{
129129

130130
}

0 commit comments

Comments
 (0)