NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #87 most downloaded on Packagist
Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
Latest stable
v2.2.0
Last release 1 months ago
14 Oct 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 37 of 38 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
38 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Remove security policy in favor of the org-wide default by @pushpak1300 in #179
Full Changelog: v2.1.0...v2.2.0
Full Changelog: https://github.com/laravel/serializable-closure/compare/v2.1.0...v2.2.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
[2.x] Fix uninitialized internal state when serializing subclasses of PHP internal classes by @frans-slabbekoorn in #176
Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group by @dependabot [bot] in #173
$signer is configured before attempting to execute unserialize() by @crynobone in #174Fix nested SerializableClosure in array property becoming a plain Closure by @lucasmichot in #172
Pin GitHub Actions to commit SHAs and add Dependabot config by @joetannenbaum in #158
feat: support closures in constant expressions (php8.5) by @calebdw in #157
fix: closure from inside anonymous migration by @calebdw in #156
[2.x] [bug] Fix operator precedence bug in scope detection for class keywords by @JoshSalway in #137
Fix trying to access array offset on null by @bytestream in #125
Fix virtual property serialization by @jivanf in #121
Fix serialization of multiple closures on the same line by @michaelruelas in #120
Allow Pest v4.0 by @jnoordsij in #117
setAccessible calls for properties by @jnoordsij in #115setAccessible calls for properties by @jnoordsij in https://github.com/laravel/serializable-closure/pull/115Remove setAccessible call for class properties (PHP 8.5) by @Kanti in #114
support function attributes with array arguments by @erikgaal in https://github.com/laravel/serializable-closure/pull/113
Fix namespaces for PHP 8.4 by @jlherren in https://github.com/laravel/serializable-closure/pull/112
Fix unable to serialize PHP8.4 object with virtual property by @crynobone in https://github.com/laravel/serializable-closure/pull/108
Supports Laravel 12 by @crynobone in https://github.com/laravel/serializable-closure/pull/105
Fix broken code for ternary operator with class instantiation with omitted parentheses by @panzer-punk in https://github.com/laravel/serializable-clos
[2.x] Fix namespaced closures being considered first class callables by @nunomaduro in https://github.com/laravel/serializable-closure/pull/97
2.0.0 release by @crynobone in https://github.com/laravel/serializable-closure/pull/99Nothing published for this version
Fix repeated word "the" in code comment by @caendesilva in https://github.com/laravel/serializable-closure/pull/98
CI Improvements by @crynobone in https://github.com/laravel/serializable-closure/pull/94
[1.x] Adds tests regarding carbon instances by @nunomaduro in https://github.com/laravel/serializable-closure/pull/82
Fixes switch cases namespace resolution by @nunomaduro in https://github.com/laravel/serializable-closure/pull/80
Fixes FQCN on anonymous classes definition by @nunomaduro in https://github.com/laravel/serializable-closure/pull/75
Fixes namespace resolution on named arguments by @nunomaduro in https://github.com/laravel/serializable-closure/pull/69
Add support for specifying if it should sign by @olivernybroe in https://github.com/laravel/serializable-closure/pull/62
Adds PHP 8.2 Support by @driesvints in https://github.com/laravel/serializable-closure/pull/57
Fixes serialization of date carbon objects by @nunomaduro in https://github.com/laravel/serializable-closure/pull/56
Adds Function Attributes support by @nunomaduro in https://github.com/laravel/serializable-closure/pull/46
Fixes first class callables namespaces by @nunomaduro in https://github.com/laravel/serializable-closure/pull/39
Adds support for first class callable syntax
Fixes serialisation of closures with named arguments code
Fixes the serialization of Enum objects
Possible stream protocol collision with opis/closure
opis/closure (#23)Fixes serialization of closures that got rebound
Fixes null safe operator with properties
Initial release
Initial release
One column per quarter.