PHPantom version
phpantom_lsp 0.8.0.0-dirty
Installation method
Other (describe in Additional Context)
Operating system
Linux x86_64
Editor
Neovim
Bug description
Static class methods does not show up in instance autocompletion.
For example, accessing the static methods withself works as expected:
But with instance $this it doesn't:
Steps to reproduce
- Create a file with the following content:
<?php
class Bug {
public function __construct(private string $error) {
}
public function print() {
echo 'this shows: ' . $this->error;
}
public static function show() {
echo 'this does not show';
}
public function test() {
// It should suggest both print and show methods
$this->
}
}
- Place cursor after
$this-> and trigger completion
- Expected
print() and show() methods appear
- Actual: only
print() method appears
Error output or panic trace
.phpantom.toml
Additional context
Using phpantom_lsp provided by Nvim's Mason Registry (obtained from phpantom_lsp releases AFAIK)
PHPantom version
phpantom_lsp 0.8.0.0-dirty
Installation method
Other (describe in Additional Context)
Operating system
Linux x86_64
Editor
Neovim
Bug description
Static class methods does not show up in instance autocompletion.
For example, accessing the static methods with
selfworks as expected:But with instance
$thisit doesn't:Steps to reproduce
$this->and trigger completionprint()andshow()methods appearprint()method appearsError output or panic trace
.phpantom.toml
Additional context
Using phpantom_lsp provided by Nvim's Mason Registry (obtained from phpantom_lsp releases AFAIK)