Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing \ from global functions #273

Merged
merged 2 commits into from
Jun 3, 2013

Conversation

simonrjones
Copy link
Contributor

As per my message on:

78b8adc

Calls to global functions like var_dump don't need the \ prefix. It's only necessary to do this if you're using namespaces (this example doesn't) and you have a method that clashes with the global one. In this guide I think the \ prefix is confusing to users unfamiliar with namespaces so I suggest they are removed.

I've also included a minor amend to add parentheses after the instantiation of the singleton object to make this code a bit more obvious to users.

best wishes,
Si

philsturgeon pushed a commit that referenced this pull request Jun 3, 2013
@philsturgeon philsturgeon merged commit 17c761d into codeguy:gh-pages Jun 3, 2013
@simonrjones simonrjones deleted the fix/global-functions branch June 3, 2013 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants