Skip to content

Commit 1fb2cdd

Browse files
authored
Declare more precise getClass() return types in extension interfaces
1 parent fff8f09 commit 1fb2cdd

4 files changed

+4
-0
lines changed

Diff for: src/Type/DynamicMethodReturnTypeExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
interface DynamicMethodReturnTypeExtension
2727
{
2828

29+
/** @return class-string */
2930
public function getClass(): string;
3031

3132
public function isMethodSupported(MethodReflection $methodReflection): bool;

Diff for: src/Type/DynamicStaticMethodReturnTypeExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
interface DynamicStaticMethodReturnTypeExtension
2727
{
2828

29+
/** @return class-string */
2930
public function getClass(): string;
3031

3132
public function isStaticMethodSupported(MethodReflection $methodReflection): bool;

Diff for: src/Type/MethodTypeSpecifyingExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
interface MethodTypeSpecifyingExtension
2929
{
3030

31+
/** @return class-string */
3132
public function getClass(): string;
3233

3334
public function isMethodSupported(MethodReflection $methodReflection, MethodCall $node, TypeSpecifierContext $context): bool;

Diff for: src/Type/StaticMethodTypeSpecifyingExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
interface StaticMethodTypeSpecifyingExtension
2929
{
3030

31+
/** @return class-string */
3132
public function getClass(): string;
3233

3334
public function isStaticMethodSupported(MethodReflection $staticMethodReflection, StaticCall $node, TypeSpecifierContext $context): bool;

0 commit comments

Comments
 (0)