From 066fa5b3cd989b9c4fb1793d5ad20af5ab0e2b3c Mon Sep 17 00:00:00 2001 From: Kirill Smelov Date: Tue, 8 Mar 2022 08:40:39 +0100 Subject: [PATCH] WI-64477 Element type inference for TestCase.getMockForTrait --- meta/phpunit/.phpstorm.meta.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/phpunit/.phpstorm.meta.php b/meta/phpunit/.phpstorm.meta.php index 319b8b5e9..4e08f9500 100644 --- a/meta/phpunit/.phpstorm.meta.php +++ b/meta/phpunit/.phpstorm.meta.php @@ -36,6 +36,11 @@ map(["" => "$0"]) ); + override( + \PHPUnit\Framework\TestCase::getMockForTrait(0), + map(["" => "$0"]) + ); + override( \PHPUnit_Framework_TestCase::createMock(0), map(["" => "$0"])