psalm icon indicating copy to clipboard operation
psalm copied to clipboard

`MissingClassConstType` error still appears when specify type annotation `/** @var int **/`

Open Tigrov opened this issue 1 year ago • 3 comments

Related comments

  • https://github.com/vimeo/psalm/issues/10933#issuecomment-2094496000
  • https://github.com/vimeo/psalm/issues/10933#issuecomment-2094867167

Tigrov avatar May 06 '24 03:05 Tigrov

The bug is already fixed here https://github.com/vimeo/psalm/commit/370880706c5909739391d2873ea58d6b6dd83eef but it's not released. @orklah Could you please make a release?

acelot avatar Jun 05 '24 07:06 acelot

@weirdan maybe you?

acelot avatar Jun 06 '24 02:06 acelot

And it looks like nikic/php-parser required version should be bumped up to ^4.17, because PhpParser\Node\Stmt\ClassConst::$type property available only since 4.17

acelot avatar Jun 06 '24 14:06 acelot