From 5b40b983cb9af6e5ea50eb7c4230b54bb53119c1 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 10 Feb 2023 14:51:15 +0100 Subject: [PATCH] [Tests] Fix static calls and Mock var annotation --- .../Tests/Controller/ProfilerControllerTest.php | 2 +- .../Tests/Descriptor/AbstractDescriptorTestCase.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php index f071aaad74d0c..5664b8b9acfde 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php @@ -446,7 +446,7 @@ public function testDumpPanel() } /** - * @return MockObject + * @return MockObject&DumpDataCollector */ private function createDumpDataCollector(): MockObject { diff --git a/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTestCase.php b/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTestCase.php index 83d99969f5462..6e0caab542fb7 100644 --- a/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTestCase.php +++ b/src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTestCase.php @@ -53,27 +53,27 @@ public function testDescribeApplication(Application $application, $expectedDescr public static function getDescribeInputArgumentTestData() { - return self::getDescriptionTestData(ObjectsProvider::getInputArguments()); + return static::getDescriptionTestData(ObjectsProvider::getInputArguments()); } public static function getDescribeInputOptionTestData() { - return self::getDescriptionTestData(ObjectsProvider::getInputOptions()); + return static::getDescriptionTestData(ObjectsProvider::getInputOptions()); } public static function getDescribeInputDefinitionTestData() { - return self::getDescriptionTestData(ObjectsProvider::getInputDefinitions()); + return static::getDescriptionTestData(ObjectsProvider::getInputDefinitions()); } public static function getDescribeCommandTestData() { - return self::getDescriptionTestData(ObjectsProvider::getCommands()); + return static::getDescriptionTestData(ObjectsProvider::getCommands()); } public static function getDescribeApplicationTestData() { - return self::getDescriptionTestData(ObjectsProvider::getApplications()); + return static::getDescriptionTestData(ObjectsProvider::getApplications()); } abstract protected function getDescriptor();