News for hackers. Stuff that matters.
Re:Things I Was Wrong About: Types by TooCreative on Sunday September 27, 2020 @11:01AM (#24607125)
For the example I took a random line from Symfony and shortened it a bit:

https://github.com/symfony/http-client/blob/master/HttpClien...

You are free to link to some other example.

Re:Things I Was Wrong About: Types by castwide on Sunday September 27, 2020 @12:25PM (#24607816)
Any example where the type is defined as something more specific than an array (especially in PHP, where the `array` type doesn't even differentiate between numerically indexed arrays and dictionaries).

Regardless, I still think the type hints in Symfony's version are better than nothing. It's also worth noting that `private static` is concerned with scope, not types.