From 20fc0c5f598734c997ab014ca3da9cfde9beb6de Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:18:23 +0200 Subject: [PATCH] Use `::class` to get the fully qualified name of the class --- src/WpThemeGetDynamicMethodReturnTypeExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WpThemeGetDynamicMethodReturnTypeExtension.php b/src/WpThemeGetDynamicMethodReturnTypeExtension.php index 807bf8c..f20c014 100644 --- a/src/WpThemeGetDynamicMethodReturnTypeExtension.php +++ b/src/WpThemeGetDynamicMethodReturnTypeExtension.php @@ -46,7 +46,7 @@ class WpThemeGetDynamicMethodReturnTypeExtension implements \PHPStan\Type\Dynami public function getClass(): string { - return '\WP_Theme'; + return \WP_Theme::class; } public function isMethodSupported(MethodReflection $methodReflection): bool