phpstan-src
phpstan-src copied to clipboard
Add `Type::getKeysArray()` and `Type::getValuesArray()`
low-hanging fruit cleanup / improvement :)
- fixes
ArrayType::getKeysArray()(by usinggetIterableKeyType()mixed keys are correctly transformed into benevolent unions) - simplifies list type creation for
array_is_list - gives us support for constant array unions for free (
instanceof ConstantArrayTypebe gone! one of the main reasons for all this refactoring)