Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    I'm clearly having a bad day. I swear I did that and received the error Using $this when not in object context. But I just tried it again and it has worked!! Think I may call it a day... Commented Sep 16, 2016 at 10:02
  • @superphonic Perhaps you did a self::somethingElse() before, it looks a bit confusing (to me at least...) to have a static method to construct an object in the same class as the object that you are constructing :-) Commented Sep 16, 2016 at 10:06
  • 1
    Well when you put it like that :-) Commented Sep 16, 2016 at 10:09