Closed LukasReschke closed 9 years ago
Actually there is not much of a difference as the PHP VM will handle private methods the same than non-static referenced ones. So mostly personal preference, this gets more relevant as I'm considering to split up the single classes (for example \u2flib_server\Error
) into it's own files to be compliant with PSR-1.
Then it is, in my opinion, with $this
much easier to see that the call is to a function defined within the same file instead of having to remember all possible classes and know in which one you are.
Fair enough. Merging.
What's the upside of changing these to be non-static?