Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Weakmap Polyfill Laravel Package

benmorel/weakmap-polyfill

Polyfill for PHP WeakMap, providing weakly-referenced key/value storage for older PHP versions. Store data associated with objects without preventing garbage collection. Useful for caches, metadata, and object maps in libraries and frameworks.

View on GitHub
Deep Wiki
Context7
0.5.0

New features

  • WeakMap now performs housekeeping on GC cycle collection (automatic and via gc_collect_cycles()) by @mvorisek (#10)
  • WeakMap is now properly annotated with [@template](https://github.com/template) (for static analysis)

🩹 Compatibility improvements

  • Fixed Error type / message when passing null instead of object in isset() / unset()
0.4.0

🐛 Bug fix

  • Fixed behaviour of isset() with null value by @mabar (#7)
0.3.0

🚀 Performance improvement

  • housekeeping is now performed less often for large WeakMaps (#4)

💥 Compatibility improvement / breaking change

  • serializing & setting dynamic properties is now forbidden, like native WeakMap (#6)

Thanks to @TysonAndre!

0.2.0

WeakMap now throws:

  • TypeError when using a non-object as a key
  • Error when appending ([]) to a WeakMap

In accordance with the specs.

Thanks to @BackEndTea!

0.1.2

:recycle: Internal refactoring

No API changes.

0.1.1

New feature

Add missing support for Traversable.

0.1.0

First beta release.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor