Jacob Dreesen

Results 183 comments of Jacob Dreesen

Did you even look if someone already reported this? Duplicate of: #1805, #1820, #1824, #1828.

Stumbled upon this, too. This is clearly a false positive, as the spaceship operator allows comparing arrays (as can be seen in [the RFC](https://wiki.php.net/rfc/combined-comparison-operator)).

Not sure if `@var array{a: array, s: string}[]` is a valid syntax... if I change it to `@var array` I don't get the warning anymore.

What exactly is the problem here? I don't get it...

There's no warning if you do it like this, though: ```php function foo(array $param) { foreach ($param as ['field' => $field]) { echo $field; } } ```

You can just add the return type. PHP allows this for sub-classes.

> ❗ Do we want to continue passing value, index, collection? > E.g. map suffers from the same problems JavaScript’s map suffers from > ```php >> ["0", "1", "2", "3",...

Do you have some patience, please?

In PHP you could do `decbin(hexdec($hash))` or `base_convert($hash, 16, 2)` to convert the hex value into a binary value.