PHP-CS-Fixer: phpdoc_to_comment bug?

using 2.x

/**
 * @var Foo
 */
$foo = createFoo();

should this really be treated as not phpdocblock ?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 31 (31 by maintainers)

Most upvoted comments

On the very beginning you said to remove whole comment …

Meh. Maybe you convinced me. ;P

!!guy

we have fixer for that case; (bool) guy

back to topic, I think both the case from @keradus and all of those from the screenshots of @drAlberT are correct. Someone should tweak the fixers

Meh, well, I didn’t write that fixer. I don’t disagree that’s not useful.

constant:

class Foo
{
    const BAR = 1;
}

it’s not the same like define("foo", "bar") in global level