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
PHP since version 8.1 supports readonly keyword to mark properties as non modifiable. But there is one problem. When an object has readonly props and it's passed to monolog, Redact will try to overwrite this property, but it's not possible so an exception will be thrown.
Maybe an option is to use reflection to create a clone of a not-readonly object and use that cloned object to overwrite props?
PHP since version 8.1 supports
readonly
keyword to mark properties as non modifiable. But there is one problem. When an object has readonly props and it's passed to monolog, Redact will try to overwrite this property, but it's not possible so an exception will be thrown.Maybe an option is to use reflection to create a clone of a not-readonly object and use that cloned object to overwrite props?
Quick example:
Result:
The text was updated successfully, but these errors were encountered: