Skip to content
New issue

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

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

Already on GitHub? # to your account

Add support for PHP 8+ WeakMaps #110

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

Conversation

jasongill
Copy link

I know, I know, adding support for PHP 8 to a project that was intended to only be used when moving from PHP 5 to PHP 7 is terrible.

But, in any case, this simple change prevents deprecation warnings like "Deprecated: Creation of dynamic property MySQL::$hash is deprecated" by instead using a WeakMap.

It allows this script to run on PHP 8 and eventually PHP 9 without errors (although obviously no sane person would want to do that).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants