phpactor / phpactor

Mainly a PHP Language Server with more features than you can shake a stick at
MIT License
1.45k stars 131 forks source link

[code-transform] Generate non-existing constants / properties #718

Open dantleech opened 5 years ago

dantleech commented 5 years ago

As with the existing generate non-existing method regactoring, allow the same with all other class members:

class Foo
{
}

$foo = new Foo();
$foo->b<>ar;

should add the property bar to Foo.

mamazu commented 3 months ago

This should work now. At least you can use that from inside the class.