Changing $this reference for static method call - updates #29292