Skip to content

diagnostics don't update #123

@Disservin

Description

@Disservin

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

default

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions