Skip to content

Revert "Now getInstance function will create new MysqliDb object if o… #797

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

Closed
wants to merge 1 commit into from

Conversation

surdaft
Copy link

@surdaft surdaft commented Nov 5, 2018

…ne is not present. (#794)"

This reverts commit 43459ae.


There is no way that this cannot cause an error due to no connection settings.

Connections are stored on an object and so therefore you cannot add a connection beforehand. With the instance being protected you cannot check its presence without using getInstance() - therefore getInstance() must always return the instance or nothing.

If there was a way of checking the instance as well as getting the instance that would be fine.

@surdaft surdaft closed this Oct 28, 2022
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.

1 participant