Skip to content

usePhpDocPropertiesWithoutMagicCall doesn't seem to be effective #2831

@orklah

Description

@orklah

(Not sure you're seeing notifications on closed issues so I recreate this one correctly after messing #2830)

I can't reproduce on psalm.dev, but on https://github.com/Roave/BetterReflection when launching psalm, we get a certain type coverage. if we add usePhpDocPropertiesWithoutMagicCall and clean cache, the coverage doesn't change. if we add

    'phpparser\\node\\stmt\\class_' => [
        'stmts' => 'array<int, PhpParser\Node\Stmt>',
    ],
    'phpparser\\node\\stmt\\trait_' => [
        'stmts' => 'array<int, PhpParser\Node\Stmt>',
    ],
    'phpparser\\node\\stmt\\interface_' => [
        'stmts' => 'array<int, PhpParser\Node\Stmt>',
    ],

in propertymap.php and clean cache, the type coverage increases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions