PHP-Constructor
PHP-Constructor copied to clipboard
Adding properties on multi-line constructor arguments doesn't work
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
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