Skip to content

Variables declared by phpdoc are marked as undefined in "use" function statements #316

@mlocati

Description

@mlocati

We can have situations where we define variables in one file, then we include a second file where we use those variables.

In that second file we can define that a variable is defined by using @var phpdocs, and this is working just fine:

Image

But in case of such variables are used in use function statements, we have a "variable is undefined" warning:

Image

Environment

Eclipse Version: 2025-09
PDT Version: 8.4.0.202509150736
OS: Windows 24H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions