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

Converted global variable to static class #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

notian
Copy link

@notian notian commented Mar 21, 2018

The global $link was a little generic, and I'd be worried it would be overwritten in a sprawling codebase. Converted it (and the global_link_identifier) function to a static class property/function.

The mysqli_result type hinting was causing fatal errors. Removed the type hint and added a "result validator" to return bool true/false (with a warning). To better emulate the original behaviour.

Added result validator to better emulate original behaviour.
Harmonized the internals of the calls.
Added my name to authors and incremented version number
@sjoerdmaessen
Copy link
Contributor

Good changes in the PR, I will see how this can be merged with the current version in master

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.

4 participants