PHPantom version
phpantom_lsp 6714db0
Installation method
Built from source
Operating system
Linux x86_64
Editor
Neovim
Bug description
Hello! When renaming a class, instances of self or static should NOT be renamed:
Steps to reproduce
enum WorkflowTemplateStatus: int
{
use Arrayable;
use HasLabelAttribute;
case Draft = 0;
case Active = 1;
case Inactive = 2;
public function isActive(): bool
{
return $this === self::Active;
}
}
- rename the enum, and observe that
self:: is updated
Error output or panic trace
.phpantom.toml
Additional context
No response
PHPantom version
phpantom_lsp 6714db0
Installation method
Built from source
Operating system
Linux x86_64
Editor
Neovim
Bug description
Hello! When renaming a class, instances of
selforstaticshould NOT be renamed:Steps to reproduce
self::is updatedError output or panic trace
.phpantom.toml
Additional context
No response