The pseudo-variable $ this is available when the method is called from the context of the object. $ is a reference to the calling object (usually the object to which the method belongs, but possibly another object if the method is called statically from the context of the secondary object).
a source
So definitely, this is a feature, it is by design, and it is not a mistake.
Maxim Krizhanovsky
source share