PHP-Constructor icon indicating copy to clipboard operation
PHP-Constructor copied to clipboard

Adding properties on multi-line constructor arguments doesn't work

Open dugajean opened this issue 5 years ago • 1 comments

When there is a constructor like this:

class Test { private $property1;

private $property2;

public function __construct(
    $property1,
    $property2
) {
    $this->property1 = $property1;
    $this->property2 = $property2;
}

}

This extension no longer works to add properties. This is a very critical bug.

I like this extension, but it's useless without this functionality. @MehediDracula

dugajean avatar May 18 '19 11:05 dugajean

Faced the same problemand decided to open a PR to add the feature myself. The way it is implemented made it hard to do, so I decided to create my own extension including this feature and many other.

If you want to give it a try: https://marketplace.visualstudio.com/items?itemName=kotfire.php-add-property

kotfire avatar Sep 30 '19 14:09 kotfire