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

Remove global namespace functions #19

Merged

Conversation

ebollens
Copy link
Contributor

@ebollens ebollens commented Sep 3, 2016

It is generally recommended that you do not define functions in the global namespace when building a package that interoperates with others. Because this library does this with array_get, it is currently incompatible with Laravel (currently the most widely used PHP framework).

This pull request removes the global namespace functions from the file that composer defines for inclusion. So that your index.php example still works, it adds array_get into that file specifically.

@chrismetcalf
Copy link
Contributor

Seems fair! 🚢

@chrismetcalf chrismetcalf merged commit 46b58cc into socrata:master Sep 6, 2016
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.

None yet

2 participants