All notable changes to once
will be documented in this file
- Rewrite phpunit tests to pest by @otsch in spatie#73
- @otsch made their first contribution in spatie#73
Full Changelog: https://github.com/spatie/once/compare/3.0.2...3.1.0
- Add PHPStan doc blocks by @ThibaudDauce in spatie#72
Full Changelog: https://github.com/spatie/once/compare/3.0.1...3.0.2
- fix for caching static functions of different classes with the same name (#62)
- refactor to use a
WeakMap
- drop support for PHP 7
- allow PHP 8
- support global functions
- differentiate between closures (#42)
- remove excess parameter in
get
oncache
- do not throw an error when using
once
ineval
- add enabling/disable the cache
- add
flush
method - drop support for PHP 7.1 and below
- add ability to use
once
in static functions
- improvements around serialization
- ditch
__memoized
in favor ofSpatie\Once\Cache
- add
MemoizeAwareTrait
- fix cacheability of falsy return values
- initial release