[PR #8713] Stop using Webmozart to fix error in Query/Parser #11134

Open
opened 2026-01-22 16:09:50 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


The Doctrine\ORM\Query\Parser uses Webmozart\Assert\Assert but it not required in composer.json.

This results in error:

Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "Assert" from namespace "Webmozart\Assert".
Did you forget a "use" statement for another namespace?" at /www/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 3629

This problem created by PR #8409

**Original Pull Request:** https://github.com/doctrine/orm/pull/8713 **State:** closed **Merged:** Yes --- The `Doctrine\ORM\Query\Parser` uses [`Webmozart\Assert\Assert`](https://github.com/doctrine/orm/blob/2.9.x/lib/Doctrine/ORM/Query/Parser.php#L81) but it not required in [composer.json](https://github.com/doctrine/orm/blob/2.9.x/composer.json#L18-L35). This results in error: ``` Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "Assert" from namespace "Webmozart\Assert". Did you forget a "use" statement for another namespace?" at /www/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 3629 ``` This problem created by PR #8409
admin added the pull-request label 2026-01-22 16:09:50 +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#11134