I have a question close to this:
It is clear that we can make optional params like this:
function myFunction($param='hello')
but I want to use it in a class's method with $this->something
instead of 'hello', it looks like this:
public function myFunction($param=$this->property)
but I get a:
Parse error: syntax error, unexpected '$this'
Is it possible to get it?