Skip to content

Conversation

sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Dec 9, 2022

This adds PHPDoc types when accessing the keys of the 'nested_parenthesis' property of tokens. From what I know, the type of that property is always array<int, int>, but for some reason in the most recent update of Psalm it no longer is able to figure that out, so here we add explicit types for it.

I'm not sure if the keys can ever be some other type, but just in case this type allows them to be either string or null also.

@sirbrillig sirbrillig merged commit 6a0e2ff into 2.x Dec 9, 2022
@sirbrillig sirbrillig deleted the fix-nested-parens-types branch December 9, 2022 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant