Skip to content

Fix Ds classes signatures#1776

Merged
isfedorov merged 8 commits intoJetBrains:masterfrom
VincentLanglet:ds
Aug 11, 2025
Merged

Fix Ds classes signatures#1776
isfedorov merged 8 commits intoJetBrains:masterfrom
VincentLanglet:ds

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

@VincentLanglet VincentLanglet commented Aug 8, 2025

cc @isfedorov @LolGleb

There was a lot of @return void missing (which are useful for PHPStan or it will consider it returns mixed)

Also

  • fix join signature cf https://www.php.net/manual/en/ds-set.join.php param is not nullable.
  • some ... were missing
  • a sum signature was missing int as return type
  • two constructor was wrong
  • callable(TValue, TValue): int|null need to be fixed to (callable(TValue, TValue): int)|null

@VincentLanglet VincentLanglet changed the title Add missing return void in Ds classes Fix Ds classes signatures Aug 8, 2025
@isfedorov isfedorov merged commit 9f8a859 into JetBrains:master Aug 11, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants