phpstan-src
phpstan-src copied to clipboard
Replace ArrayType::castToArrayKey() with Type::toArrayKey()
trafficstars
All aboard the Type refactoring train! 🚆 I can't wait to get rid of inheritance in Type classes.
The improvement actually causes some tests to fail legitimately, which is why I kept is as a draft. I'll improve those separately first so this can land cleanly :)
ah right, I introduced usage of the old method again in the meantime in HasOffsetValueType, sorry 😊
This pull request has been marked as ready for review.
Thank you!