Repository navigation
Commit e372f40
committed
[perf] Skip NestedAnnotationToAttributeRector for nodes without a docblock
The rule subscribes to Property, Class_ and Param and built a PhpDocInfo for every node. The attribute groups come only from docblock doctrine annotations and it reprints an existing docblock, so a node without one always returns null. Guard the phpdoc path behind getDocComment(). Behaviour unchanged.1 parent 359eb18 commit e372f40
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| |||
0 commit comments