Skip to content

Commit 4e4fa51

Browse files
committed
Revert "Fix ClassDescriptionBuilder::clear() not resetting filePath"
The filePath intentionally persists through clear() because it is set once per file and must be shared across all classes parsed within that same file. The explicit reset via setFilePath(null) in clearParsedClassDescriptions() handles the inter-file reset correctly. https://claude.ai/code/session_01FajV9gddhGECyFCzRyVxfW
1 parent b22bb6e commit 4e4fa51

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/Analyzer/ClassDescriptionBuilder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function clear(): void
5656
$this->interface = false;
5757
$this->trait = false;
5858
$this->enum = false;
59-
$this->filePath = null;
6059
}
6160

6261
public function setFilePath(?string $filePath): self

0 commit comments

Comments
 (0)