Skip to content

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).

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