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)
using 2.x
/**
* @var Foo
*/
$foo = createFoo();
should this really be treated as not phpdocblock ?
Meh. Maybe you convinced me. ;P
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.
https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1715#issue-129483212
there is no constant here …
constant:
it’s not the same like
define("foo", "bar")
in global level