Skip to content

Fix GH-18223: Meaningful error on wrong trait method exclusion #19404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: PHP-8.3
Choose a base branch
from

Conversation

alexandre-daubois
Copy link
Contributor

Fix #18223

This adds a compile-time validation to detect invalid trait insteadof rules that would exclude all method implementations. This replaces the confusing runtime "undefined method" errors with a meaningful message.

@alexandre-daubois alexandre-daubois changed the base branch from master to PHP-8.3 August 7, 2025 11:33
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.

Invalid trait insteadof list
1 participant