You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a file contains several classes, insertion goes to wrong class. What i did:
create file with following code:
<?phpclass Foo
{
private$a;
}
class Bar
{
private$b;
}
put cursor on private $a and run insert PHP setter What i expected:
class Foo to have setter function for private $a
<?phpclass Foo
{
private$a;
/** * Set the value of a * * @return self */publicfunctionsetA($a)
{
$this->a = $a;
return$this;
}
}
class Bar
{
private$b;
}
What i get instead:
class Bar got setter for private $a
<?phpclass Foo
{
private$a;
}
class Bar
{
private$b;
/** * Set the value of a * * @return self */publicfunctionsetA($a)
{
$this->a = $a;
return$this;
}
}
checked on win10
vscode 1.36.1
extension version: 1.2.3
The text was updated successfully, but these errors were encountered:
If a file contains several classes, insertion goes to wrong class.
What i did:
create file with following code:
put cursor on private $a and run insert PHP setter
What i expected:
class Foo to have setter function for private $a
What i get instead:
class Bar got setter for private $a
checked on win10
vscode 1.36.1
extension version: 1.2.3
The text was updated successfully, but these errors were encountered: