You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this old issue opis/closure#28 I had a problem with readonly properties so they fixed it with this opis/closure@3.1.5...3.1.6 though this ($property->getDeclaringClass()->isUserDefined()) isn't needed for PHP >= 8.1, you can just skip the readonly properties like #87
The text was updated successfully, but these errors were encountered:
The $property->getDeclaringClass()->isUserDefined() method solves the Cannot write property problem, whereas $property->isReadOnly() deals with the Cannot modify readonly property issue. As you can see, the opis/closure encounters the Cannot modify readonly propertyissue during unserialization, similar to what was reported in laravel/framework#51877.
Therefore, I don't think this is an alternative solution.
In this old issue opis/closure#28 I had a problem with readonly properties so they fixed it with this opis/closure@3.1.5...3.1.6 though this (
$property->getDeclaringClass()->isUserDefined()
) isn't needed for PHP >= 8.1, you can just skip the readonly properties like #87The text was updated successfully, but these errors were encountered: