Question

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 (i.e. $f->baz()->baz()) and boolean type is namespaced:

Problem 1 Problem 2

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top