Skip to content

Commit 7055460

Browse files
committed
Adjust DynamicReturnTypeInterface::getClass to non static method
Make compatible with latest phpstan master by changing the getClass method of the DynamicReturnTypeInterface to a non static method
1 parent 0ed74bc commit 7055460

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Type/GeneralUtilityDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class GeneralUtilityDynamicReturnTypeExtension implements DynamicStaticMethodReturnTypeExtension
1414
{
15-
public static function getClass(): string
15+
public function getClass(): string
1616
{
1717
return \TYPO3\CMS\Core\Utility\GeneralUtility::class;
1818
}

src/Type/ObjectManagerDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class ObjectManagerDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
1414
{
15-
public static function getClass(): string
15+
public function getClass(): string
1616
{
1717
return \TYPO3\CMS\Extbase\Object\ObjectManagerInterface::class;
1818
}

src/Type/QueryInterfaceDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class QueryInterfaceDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
1919
{
20-
public static function getClass(): string
20+
public function getClass(): string
2121
{
2222
return QueryInterface::class;
2323
}

0 commit comments

Comments
 (0)