Skip to content

Fix self parameter type resolution#20

Merged
kalifg merged 1 commit into
masterfrom
php85-self-type-resolution
May 12, 2026
Merged

Fix self parameter type resolution#20
kalifg merged 1 commit into
masterfrom
php85-self-type-resolution

Conversation

@kalifg
Copy link
Copy Markdown
Member

@kalifg kalifg commented May 12, 2026

Summary

  • Resolve PHP self parameter types to the declaring class when coercing scalar fixture values through ORM lookup
  • Resolve parent parameter types to the parent class, matching the old ReflectionParameter::getClass() behavior
  • Add a regression test for nullable ?self setters

Testing

  • vendor/bin/phpunit

@kalifg kalifg merged commit 170adeb into master May 12, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant