rename not working
还没有人认领这个 Issue。
评估
调研方向
首先复现报告中的重命名情况:从 $logger 的声明处以及从 $this->logger 将 $logger 重命名为 $_logger,然后在方法参数与成员 cache 同名时重命名成员 cache。完成的标准是更新 accessor 和成员引用,同时不更改无关参数,并且报告的 MemberAccessExpression 错误不再发生;issue 中未指定任何文件或测试路径。
由索引模型根据 Issue 内容生成。
描述
rename doesn't seem to work properly - it doesn't recognise accessors/getters or the member data within them. eg here I rename member variable $logger to $_logger both locally and "in file" - neither correctly updates the logger() method.

Here I tried renaming from the declaration. Trying to rename from an "$this->logger" results in:-
user-error: Expected Variable or Parameter node, got
"Microsoft\PhpParser\Node\Expression\MemberAccessExpression"
Possibly the worst problem though is renaming a member variable that has parameters named after it. eg here I rename member var "cache" to "cache2" and it renames method parameters in that class and not the actual member variable usages.

- 主要语言
- Emacs Lisp
- 星标
- 47
- 派生
- 11
- 平均合并
- 12 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
emacs-php/phpactor.el 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 30/100
emacs-php/phpactor.el#161 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
emacs-php/phpactor.el#153 ·
-
behind from upstream bug
难度 3/5 1-2 天 新手友好度 25/100
emacs-php/phpactor.el#141 · 4 条评论 · 1 个 reaction ·
-
help wanted
难度 3/5 1-2 天 新手友好度 35/100
emacs-php/phpactor.el#140 ·
-
ensure complete output of phpactor-status is readable可能已有人在做 @kermorgant 于 2666 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
emacs-php/phpactor.el#123 ·
查看 emacs-php/phpactor.el 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
mihai-vlc/sublime-jsfmt#56 ·
-
comp/cli comp/plugins P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#141917 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
riscv/riscv-opcodes#441 ·
-
[辞書] かんそうりつ->乾燥率未关闭辞書
难度 1/5 1 小时以内 新手友好度 62/100
维护者通常 1 天内回复
-
Bug React-Native Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 74/100
getsentry/sentry-react-native#6913 · 1 条评论 ·
维护者通常 1 天内回复