[PR #10599] fix(persistent-collection): check association is not nullable before using it as an array #12480

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

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

State: closed
Merged: Yes


Hi,

I've faced the same issue explained here : https://github.com/doctrine/orm/pull/8356 so I decided to retry his commit.

Warning: Trying to access array offset on value of type null

I only check if $this->association !== null like on the linked PR.

Thank you !

**Original Pull Request:** https://github.com/doctrine/orm/pull/10599 **State:** closed **Merged:** Yes --- Hi, I've faced the same issue explained here : https://github.com/doctrine/orm/pull/8356 so I decided to retry his commit. ![Warning: Trying to access array offset on value of type null](https://user-images.githubusercontent.com/95275902/228179898-acc170f5-ded7-4955-8785-dc97d1c6269f.jpg) I only check if `$this->association !== null` like on the linked PR. Thank you !
admin added the pull-request label 2026-01-22 16:14:10 +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#12480