From 5597adbbde869e0c89d58186e918b92403623082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Marrafa?= Date: Fri, 9 Aug 2024 07:59:08 +0100 Subject: [PATCH] Match namespace|use only on begining of line (#477) Ensure use matches are only on begining of lines to prevent conflicts with use keyword for traits. --- src/Infer/Reflector/ClassReflector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infer/Reflector/ClassReflector.php b/src/Infer/Reflector/ClassReflector.php index 78c7dd1f..7fbbd71a 100644 --- a/src/Infer/Reflector/ClassReflector.php +++ b/src/Infer/Reflector/ClassReflector.php @@ -60,7 +60,7 @@ public function getNameContext(): NameContext // Removes all comments. $code = preg_replace('/\/\*(?:[^*]|\*+[^*\/])*\*+\/|(?