@Ann, if my feeling is correct the "Compliant Code Example" is incorrect because the $name field is not declared as being static. Moreover are you sure that when you call a static method on a class instance, the $this keyword is really correctly interpreted in the body of the static method ? (I'm asking the question because for sure in Java, this is not the case)
\[~freddy.mallet] the compliant code example has $name being passed in to the static method as a parameter. I've renamed it to make that clearer. And no, ``++$this++`` doesn't work correctly in a static context.
@Ann, I guess I know why I was a bit lost when discovering this description :
____
But static methods can be accessed without instantiating the class, so it's very possible that there is no class instance at the time the code is executed, resulting in runtime errors.
____
According to this description, sounds like it's possible to access to a class instance from a static function whereas this is indeed not at all possible.
So I would rework the description to prevent any misunderstanding.