Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b40b98

Browse files
[Tests] Fix static calls and Mock var annotation
1 parent 089ec9d commit 5b40b98

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public function testDumpPanel()
446446
}
447447

448448
/**
449-
* @return MockObject<DumpDataCollector>
449+
* @return MockObject&DumpDataCollector
450450
*/
451451
private function createDumpDataCollector(): MockObject
452452
{

src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTestCase.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,27 +53,27 @@ public function testDescribeApplication(Application $application, $expectedDescr
5353

5454
public static function getDescribeInputArgumentTestData()
5555
{
56-
return self::getDescriptionTestData(ObjectsProvider::getInputArguments());
56+
return static::getDescriptionTestData(ObjectsProvider::getInputArguments());
5757
}
5858

5959
public static function getDescribeInputOptionTestData()
6060
{
61-
return self::getDescriptionTestData(ObjectsProvider::getInputOptions());
61+
return static::getDescriptionTestData(ObjectsProvider::getInputOptions());
6262
}
6363

6464
public static function getDescribeInputDefinitionTestData()
6565
{
66-
return self::getDescriptionTestData(ObjectsProvider::getInputDefinitions());
66+
return static::getDescriptionTestData(ObjectsProvider::getInputDefinitions());
6767
}
6868

6969
public static function getDescribeCommandTestData()
7070
{
71-
return self::getDescriptionTestData(ObjectsProvider::getCommands());
71+
return static::getDescriptionTestData(ObjectsProvider::getCommands());
7272
}
7373

7474
public static function getDescribeApplicationTestData()
7575
{
76-
return self::getDescriptionTestData(ObjectsProvider::getApplications());
76+
return static::getDescriptionTestData(ObjectsProvider::getApplications());
7777
}
7878

7979
abstract protected function getDescriptor();

0 commit comments

Comments
 (0)