Skip to content

Commit

Permalink
Use an own argument called ae and assert it implements interface Baz
Browse files Browse the repository at this point in the history
  • Loading branch information
boesing authored and ondrejmirtes committed Oct 1, 2019
1 parent 7bed9c4 commit f57366a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function testExtension(): void
119,
],
[
'Variable $q is: PHPStan\Type\WebMozartAssert\Baz&PHPStan\Type\WebMozartAssert\Foo',
'Variable $ae is: PHPStan\Type\WebMozartAssert\Baz',
122,
],
]);
Expand Down
8 changes: 4 additions & 4 deletions tests/Type/WebMozartAssert/data/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Foo
{

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)
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)
{
$a;

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

Assert::implementsInterface($q, Baz::class);
$q;
Assert::implementsInterface($ae, Baz::class);
$ae;
}

}

class Bar implements Baz
class Bar
{

}
Expand Down

0 comments on commit f57366a

Please sign in to comment.