All notable changes to once
will be documented in this file
- fix spacing by @faisuc in #77
- Add Dependabot Automation by @patinthehat in #80
- Add PHP 8.2 Support by @patinthehat in #82
- Update Dependabot Automation by @patinthehat in #83
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in #84
- Update README.md by @davidjr82 in #87
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in #89
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in #90
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in #93
- Bump actions/checkout from 2 to 4 by @dependabot in #94
- Adjust pretty name of closures on PHP 8.4 by @staabm in #99
- @faisuc made their first contribution in #77
- @patinthehat made their first contribution in #80
- @dependabot made their first contribution in #84
- @davidjr82 made their first contribution in #87
- @staabm made their first contribution in #99
Full Changelog: https://github.com/spatie/once/compare/3.1.0...3.1.1
- Rewrite phpunit tests to pest by @otsch in #73
- @otsch made their first contribution in #73
Full Changelog: https://github.com/spatie/once/compare/3.0.2...3.1.0
- Add PHPStan doc blocks by @ThibaudDauce in #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