php-the-right-way icon indicating copy to clipboard operation
php-the-right-way copied to clipboard

Type casting & arrays

Open zakirullin opened this issue 4 years ago • 2 comments

With all that goodies documented, we still have a topic to think about.

Type casting in PHP is horrible and hard (means prone to errors). You shouldn't use that in 2020. Especially when dealing with requests/responses/configs/arrays and other raw data.

Untyped array is a problem also (with all those issets() nearby).

We came to an easy solution like this

You think the problem is worth describing?

zakirullin avatar Jul 25 '20 06:07 zakirullin

@codeguy Hi there! Care to see the PR?

zakirullin avatar Feb 07 '22 09:02 zakirullin

@zakirullin yes please :)

matthewtrask avatar Feb 07 '22 14:02 matthewtrask