Skip to content

Fix crash on numeric annotation#11445

Merged
danog merged 2 commits intovimeo:6.xfrom
VincentLanglet:fixCrash
May 21, 2025
Merged

Fix crash on numeric annotation#11445
danog merged 2 commits intovimeo:6.xfrom
VincentLanglet:fixCrash

Conversation

@VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented May 20, 2025

Closes #11217
Closes #11442

If I keep @param array<string, array<int, string>> $specials, the is_string check is reported as useless, so I'm not sure if you prefer @danog

  • To change it to @param array<int|string, array<int, string>> $specials like I did
  • Or to suppress the psalm error on the useless is_string check

@danog danog added the release:fix The PR will be included in 'Fixes' section of the release notes label May 21, 2025
@danog
Copy link
Collaborator

danog commented May 21, 2025

Let's turn this into a cast + suppress the issue on the is_string check

@danog danog merged commit 6ff7f8d into vimeo:6.x May 21, 2025
47 of 49 checks passed
@danog
Copy link
Collaborator

danog commented May 21, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:fix The PR will be included in 'Fixes' section of the release notes

Projects

None yet

2 participants