PHPantom version
phpantom_lsp 0.8.0-2-g7c86d78c
Installation method
Built from source
Operating system
macOS aarch64 (Apple Silicon)
Editor
VS Code
Bug description
When for example updating the type of a function parameter previous diagnostics don't get updated and still emit the warning.
Steps to reproduce
test.php
<?php
require_once "test2.php";
function foo(string $y) {
bar($y);
}
test2.php
<?php
function bar(null $x) {
return $x;
}
Expected diagnostic when starting the lsp here
Argument 1 ($x) expects null, got string
after fixing bar to be bar(string $x) the diagnostic is still present and only disappears on file close/reopen or editor reload
Error output or panic trace
.phpantom.toml
Additional context
No response
PHPantom version
phpantom_lsp 0.8.0-2-g7c86d78c
Installation method
Built from source
Operating system
macOS aarch64 (Apple Silicon)
Editor
VS Code
Bug description
When for example updating the type of a function parameter previous diagnostics don't get updated and still emit the warning.
Steps to reproduce
test.php
test2.php
Expected diagnostic when starting the lsp here
after fixing
barto bebar(string $x)the diagnostic is still present and only disappears on file close/reopen or editor reloadError output or panic trace
.phpantom.toml
defaultAdditional context
No response