Skip to content

Fix #572: Fix union types in PHPDoc annotations - #572

Merged
samdark merged 4 commits into
masterfrom
fix-unions-in-phpdocs
Aug 3, 2026
Merged

Fix #572: Fix union types in PHPDoc annotations#572
samdark merged 4 commits into
masterfrom
fix-unions-in-phpdocs

Conversation

@mspirkov

@mspirkov mspirkov commented Aug 1, 2026

Copy link
Copy Markdown
Contributor
Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Tests pass? ✔️
Fixed issues comma-separated list of tickets # fixed by the PR, if any

See: phpstan/phpstan#15036

PHPStan resolves `array|Generator[]` to `array<Generator>`, dropping the
plain `array` alternative needed for generator configuration arrays.
@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.60%. Comparing base (8311b25) to head (ddc12a8).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #572   +/-   ##
=========================================
  Coverage     46.60%   46.60%           
  Complexity      586      586           
=========================================
  Files            45       45           
  Lines          2521     2521           
=========================================
  Hits           1175     1175           
  Misses         1346     1346           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mspirkov
mspirkov requested a review from a team August 1, 2026 11:12
@mspirkov mspirkov added the status:code review The pull request needs review. label Aug 1, 2026
@samdark samdark changed the title Fix union types in PHPDoc annotations Fix #572: Fix union types in PHPDoc annotations Aug 3, 2026
@samdark
samdark merged commit a1f3f43 into master Aug 3, 2026
14 checks passed
@samdark
samdark deleted the fix-unions-in-phpdocs branch August 3, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants