Clone readonly properties in PHP 8.1. A trait that allows you to clone readonly properties in PHP 8.1.
This package provides a trait that allows you to clone objects with readonly properties in PHP 8.1. You can read an in-depth explanation as to why this is necessary here.