Skip to content

Fix GH-14156: Inherited private method does not satisfy abstract trait requirement - #23266

Open
matthiasgoergens wants to merge 2 commits into
php:masterfrom
matthiasgoergens:gh14156-trait-private-abstract
Open

Fix GH-14156: Inherited private method does not satisfy abstract trait requirement#23266
matthiasgoergens wants to merge 2 commits into
php:masterfrom
matthiasgoergens:gh14156-trait-private-abstract

Conversation

@matthiasgoergens

Copy link
Copy Markdown
Contributor

A private method inherited from a parent class is not accessible from the using
class, but trait composition treats it as satisfying an abstract trait method,
which then fails at call time. Only private methods declared in the using class
itself satisfy the requirement.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant