From f57366ae6469a5c93748d7d8b274f352512022fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= <2189546+boesing@users.noreply.github.com> Date: Tue, 1 Oct 2019 13:09:21 +0200 Subject: [PATCH] Use an own argument called `ae` and assert it implements interface `Baz` --- .../WebMozartAssert/AssertTypeSpecifyingExtensionTest.php | 2 +- tests/Type/WebMozartAssert/data/data.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php b/tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php index 6f9c763..e197ee3 100644 --- a/tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php +++ b/tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php @@ -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, ], ]); diff --git a/tests/Type/WebMozartAssert/data/data.php b/tests/Type/WebMozartAssert/data/data.php index d521eb7..5c92662 100644 --- a/tests/Type/WebMozartAssert/data/data.php +++ b/tests/Type/WebMozartAssert/data/data.php @@ -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; @@ -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 { }