symfony / polyfill

PHP polyfills

Home Page:https://symfony.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RFC] PHP 8.0 WeakMap

michaljusiega opened this issue · comments

There is a unstable implemention for WeakMap https://github.com/BenMorel/weakmap-polyfill added in PHP 8.0 available for >= PHP 7.4.

Maybe it would be a good idea to merge it into symfony/polyfill-php80?

Nevermind :D

Given that this weakmap polyfill requires PHP 7.4+, I don't think it belongs to this repo. We tend to polyfill for older versions. If someone needs a weakmap and is fine with requiring 7.4+, I suggest using the existing package.