From 8ee875086f356369cad7376fc0b295239becd227 Mon Sep 17 00:00:00 2001 From: ging-dev Date: Tue, 17 Oct 2023 20:17:15 +0700 Subject: [PATCH] chore: add failing test --- tests/Cache/CacheTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Cache/CacheTest.php b/tests/Cache/CacheTest.php index 04f44eda644..f2d8443a711 100644 --- a/tests/Cache/CacheTest.php +++ b/tests/Cache/CacheTest.php @@ -219,6 +219,16 @@ public function foo($baz): void } } PHP, + '/src/B.php' => <<<'PHP' + foo(1); + } + } + PHP, ], 'issues' => [], ], @@ -244,6 +254,9 @@ public function foo($baz): void '/src/A.php' => [ "UndefinedDocblockClass: Docblock-defined class, interface or enum named T does not exist", ], + '/src/B.php' => [ + "InvalidArgument: Argument 1 of A::foo expects T, but 1 provided", + ], ], ], ],