Skip to content

Commit

Permalink
[1.x] Adds documentation about readonly caveat (#70)
Browse files Browse the repository at this point in the history
* Adds caveat

* Update README.md
  • Loading branch information
nunomaduro authored Jul 14, 2023
1 parent c19f8f3 commit e5a3057
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ echo $closure(); // james;

### Caveats

1. Creating **anonymous classes** within closures is not supported.
2. Using attributes within closures is not supported.
3. Serializing closures on REPL environments such as Laravel Tinker is not supported.
* Anonymous classes cannot be created within closures.
* Attributes cannot be used within closures.
* Serializing closures on REPL environments like Laravel Tinker is not supported.
* Serializing closures that reference objects with readonly properties is not supported.

## Contributing

Expand Down

0 comments on commit e5a3057

Please sign in to comment.