简体   繁体   中英

PhpStorm 7 @method bug or I'm wrongly using phpDocumentor annotations?

I don't know if this is my bad (wrong phpDocumentor annotations) or it's a bug. Anyone experiencing this issue?

namespace Bar\Baz;

/**
 * @method Foo baz(boolean $baz)
 */
class Foo
{

}

As you can see there is no code completion for chaining (ie $f->baz()->baz() ) and boolean type is namespaced:

问题1问题2

This is a known issue in PhpStorm 7.x.

If you use the fully qualified name chaining and type hinting will work.

Reference: http://youtrack.jetbrains.com/issue/WI-17404

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM