[PR #930] Transactional callback isn't returning false #8917

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

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

State: closed
Merged: No


Trying to fix any situation that if we've something callback with explicit FALSE return, like:

$rtn = $mgr->transactional(function() {...; return false;});
$rtn //true 

Should be the return value of the callback method,
If the method is not returning any value (null), then.. we consider the callback was done, then return true.

Regards.

**Original Pull Request:** https://github.com/doctrine/orm/pull/930 **State:** closed **Merged:** No --- Trying to fix any situation that if we've something callback with explicit FALSE return, like: ``` php $rtn = $mgr->transactional(function() {...; return false;}); $rtn //true ``` Should be the return value of the callback method, If the method is not returning any value (null), then.. we consider the callback was done, then return true. Regards.
admin added the pull-request label 2026-01-22 16:02:18 +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#8917