Skip to content

Recurse directly for a bare Select in Combine::combine() - #217

Merged
simon-mundy merged 6 commits into
php-db:0.6.xfrom
simon-mundy:qa/mago-sql-combine-recursion
Oct 9, 2026
Merged

simon-mundy merged 6 commits into
php-db:0.6.xfrom
simon-mundy:qa/mago-sql-combine-recursion

Conversation

@simon-mundy

Copy link
Copy Markdown
Member

Depends on #216. Until the earlier PRs in this series merge, this diff also shows their commits; the change here is the last commit, "Recurse directly for a bare Select in Combine::combine()".

Removes 2 undefined-int-array-index analyzer findings in src/Sql/Combine.php.

Changes

  • When the list passed to Combine::combine() contains a bare Select, it is passed straight back to combine() with the given type and modifier. Previously it was wrapped in a one-element array whose missing type and modifier keys the analyzer reported as undefined.
  • The analyzer baseline is regenerated; only src/Sql entries change.

Breaking changes

None.

mago format, mago lint, mago analyze and the unit tests pass.

A bare Select in the combine list is passed straight back to
combine() instead of being wrapped in a one-element array, whose
missing type and modifier keys the analyzer reports as undefined.

Signed-off-by: Simon Mundy <simon.mundy@peptolab.com>
@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@simon-mundy simon-mundy added documentation Improvements or additions to documentation qa Improvements in quality assurance of the project Lang Feature Refactor Refactoring to new language features labels Oct 4, 2026
@simon-mundy simon-mundy added this to the 0.6.0 milestone Oct 4, 2026
@simon-mundy simon-mundy self-assigned this Oct 4, 2026
@simon-mundy
simon-mundy requested a review from tyrsson October 6, 2026 02:19
@simon-mundy
simon-mundy marked this pull request as ready for review October 6, 2026 02:23
@simon-mundy
simon-mundy merged commit 8dec877 into php-db:0.6.x Oct 9, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation Lang Feature Refactor Refactoring to new language features qa Improvements in quality assurance of the project

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants