Transient Mutation

Learn about Transient Mutation and its supporting packages in PHP.

Overview

When a function produces an immutable result, it’s always possible that it modifies an external state in the process. This is especially visible in value objects and persistent data structures where artifacts, such as iterative control structures, create multiple encapsulated data structures before producing a single result. ...