SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this now with es10 private methods. You just need to add a # before the method name.
#
class ClassWithPrivateMethod { #privateMethod() { return 'hello world'; } getPrivateMessage() { return #privateMethod(); } }