Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark toArray as pure and force psalm to accept it
Lie to Psalm and tell it that toArray is immmutable. This seems tolerable (despite how bad a practice overriding the typechecker is) because the mutation is entirely memoization. If PHP were a lazy language, no caching would be necessary in the first place.
- Loading branch information