How to Implement Type Safety for PHP Arrays
I think about code often. Sometimes, I just close my eyes, think about the code I've written and the many ways to make it better. Just the other day, I started wondering about using DTO's and Value Objects as an option for better strict typing. Here is some of the code that popped up in my head: