[PR #11498] Remove doctrine/instantiator #13063

Closed
opened 2026-01-22 16:16:03 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11498

State: closed
Merged: No


I'd like to remove doctrine/instantiator from our dependencies.

I had a chat with @sebastianbergmann the other day and he told me how relieved he was that he could remove doctrine/instantiator from PHPUnit's dependencies because ReflectionClass::newInstanceWithoutConstructor() has become a drop-in replacement for all of his use-cases. This made me wonder if that weren't also the case for the ORM.

Is there any situation where instantiator would simply call ReflectionClass::newInstanceWithoutConstructor()?

**Original Pull Request:** https://github.com/doctrine/orm/pull/11498 **State:** closed **Merged:** No --- I'd like to remove `doctrine/instantiator` from our dependencies. I had a chat with @sebastianbergmann the other day and he told me how relieved he was that he could remove `doctrine/instantiator` from PHPUnit's dependencies because `ReflectionClass::newInstanceWithoutConstructor()` has become a drop-in replacement for all of his use-cases. This made me wonder if that weren't also the case for the ORM. Is there any situation where instantiator would simply call `ReflectionClass::newInstanceWithoutConstructor()`?
admin added the pull-request label 2026-01-22 16:16:03 +01:00
admin closed this issue 2026-01-22 16:16:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#13063