Skip to content

Instantly share code, notes, and snippets.

@astorm
Created December 5, 2013 23:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astorm/7816317 to your computer and use it in GitHub Desktop.
Save astorm/7816317 to your computer and use it in GitHub Desktop.

It's been 9 years since the release of PHP, but my muscle memory still wants a double beat (as opposed to tripple) when I type function definitions.

class Baz
{
    function getSomething()
    {
    }
}

However, my brain knows PHP 5 does have method access levels. So, when I combine my brain with my muscle memory, I type something like the following multiple times daily and don't notice it until I refresh the page/run my tests. FOR 9 YEARS.

class Baz
{
    public getSomething()
    {
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment