Skip to content

Commit 0d4c56b

Browse files
committed
Refactor extractAnnotations to return an empty array, removing the original implementation
1 parent a0e8dec commit 0d4c56b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/CodeVisitor.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ public function enterNode(Node $node)
252252
*/
253253
private function extractAnnotations(string $docString)
254254
{
255+
// PHP doesn't have decorators like Python, so returning an empty array
256+
return [];
257+
258+
// Original implementation commented out below
259+
/*
255260
$annotations = [];
256261
257262
// Match annotations in the format @annotationName or @annotationName(params)
@@ -262,6 +267,7 @@ private function extractAnnotations(string $docString)
262267
}
263268
264269
return $annotations;
270+
*/
265271
}
266272

267273
/**

0 commit comments

Comments
 (0)