2 comments

[ 3.1 ms ] story [ 11.9 ms ] thread
I honestly don't think that this solves anything that was a real problem in PHP. Super easy boilerplate to abstract away (like you did). But I don't think your way is much more pleasing to the eye than filter_var... Maybe I am being over critical because the amount of emojis gave me a minor aneurysm.
Type casting doesn't seem to be an issue for you?