From e5a3057a5591e1cfe8183034b0203921abe2c902 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 14 Jul 2023 14:56:28 +0100 Subject: [PATCH] [1.x] Adds documentation about `readonly` caveat (#70) * Adds caveat * Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1efef38..ee0d01a1 100644 --- a/README.md +++ b/README.md @@ -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