Skip to content

Cascade merge: 4.x into master - #255

Merged
github-actions[bot] merged 5 commits into
masterfrom
4.x
Nov 3, 2026
Merged

github-actions[bot] merged 5 commits into
masterfrom
4.x

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Automated cascade merge that keeps master in sync with the 4.x maintenance branch.

This PR tracks 4.x and merges automatically once required checks pass. A new one is opened after each merge, so every future push to 4.x keeps flowing forward into master.

If this PR shows a conflict, resolve it manually on 4.x (or directly on this PR's branch) — auto-merge will pick it up once it's clean again.

claude and others added 5 commits November 3, 2026 08:51
A partial reflection left a missing parent class and missing interfaces out
of every API, so a consumer that needs their names (a proxy generator
re-declaring extends/implements, for instance) had to read them from the AST
node itself.

- ReflectionClass::getParentClassName() returns the name of the parent class
  as written in the source, located or not, without reflecting it;
- getInterfaceNames() and implementsInterface() of a partial reflection
  include the missing interfaces declared by the class and by its available
  ancestors. getInterfaces() still lists the located ones only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxhC1CBg4rnTu9UjAMcCpL
Review feedback: the declared names of the parent class and interfaces were
read by static ReflectionClass::getDeclaredParentName() and
getDeclaredInterfaceNames(), next to getParentClassName() and
getInterfaceNames() doing the same job.

- the static helpers are removed; one private instance method of the trait,
  getAncestorNamesFromSource(), reads the parent class, interfaces and traits
  from $this->classLikeNode, and getParentClassName(), getParentClass(),
  getInterfaceNames(), getTraitNames() and getMissingClassNames() use it;
- getTraitNames() of a partial reflection names the missing traits too, like
  getInterfaceNames() does for interfaces;
- ReflectionClass::collectMissingAncestorNames(), released in 4.1, is kept as
  a deprecated wrapper of getMissingClassNames().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxhC1CBg4rnTu9UjAMcCpL
PHPStan does not apply a docblock above a closure assignment to its
parameters, so the name nodes were mixed: check them with instanceof.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxhC1CBg4rnTu9UjAMcCpL
It was added in 4.1 and is hardly used yet: getMissingClassNames() of the
reflection replaces it, no deprecated wrapper is kept (review feedback).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxhC1CBg4rnTu9UjAMcCpL
feat: Name missing ancestors of a partial reflection as written in the source
@github-actions
github-actions Bot merged commit 2ca36e1 into master Nov 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants