We have class A which use old way in return - it returns class name.
Cutting edge PHPStorm support $this.
//in library - DO NOT touch!
class Class_A
{
/**
* @return Class_A
*/
public function method()
{
return $this;
}
}
//your class
class Class_B extends Class_A
{
/**
* This "return" will generate PHPStorm.
*
* @return \Class_A
*/
public function method()
{
return parent::method();
}
}
Need to match @return \Class_A and propose to use @return $this.
We have class A which use old way in return - it returns class name. Cutting edge PHPStorm support
$this
.Need to match
@return \Class_A
and propose to use@return $this
.