From 9009a0b5fa47328c61dca20f61e7bd6e84f293c9 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Sun, 19 Jul 2026 21:15:19 +0800 Subject: [PATCH] refactor(preprocessor): change method visibility for constant type resolution - Changed resolveReferencedConstantType method from private to protected access - Maintains same functionality for resolving referenced constant types - Enables potential inheritance or extension of the preprocessor class --- src/Preprocessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Preprocessor.php b/src/Preprocessor.php index 612906d6..1251309d 100644 --- a/src/Preprocessor.php +++ b/src/Preprocessor.php @@ -831,7 +831,7 @@ class Preprocessor extends CompilerBase * the reference cannot be resolved yet (for instance when the referenced * class has not been prepared). `::class` always resolves to a string. */ - private function resolveReferencedConstantType(Node\Expr\ClassConstFetch $fetch, string $currentClass): ?string + protected function resolveReferencedConstantType(Node\Expr\ClassConstFetch $fetch, string $currentClass): ?string { $constName = $fetch->name->toString(); if (strcasecmp($constName, 'class') === 0) {