mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #569] [MERGED] Hotfix/pre flush event args params #8385
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/569
Author: @Ocramius
Created: 2/4/2013
Status: ✅ Merged
Merged: 2/12/2013
Merged by: @FabioBatSilva
Base:
master← Head:hotfix/pre-flush-event-args-params📝 Commits (2)
3ebed10Strong typehinting to avoid incorrect constructor paramsf281dbbFixing incorrect constructor params for PreFlushEventArgs📊 Changes
4 files changed (+14 additions, -8 deletions)
View changed files
📝
lib/Doctrine/ORM/Event/OnClearEventArgs.php(+3 -1)📝
lib/Doctrine/ORM/Event/OnFlushEventArgs.php(+2 -1)📝
lib/Doctrine/ORM/Event/PreFlushEventArgs.php(+8 -5)📝
lib/Doctrine/ORM/UnitOfWork.php(+1 -1)📄 Description
As reported by a user on IRC, the
PreFlushEventArgsobject was built with incorrect parameters. this fix solves the problem by typehinting the constructor.Tests aren't really necessary since a lot of functional tests were simply broken because of this additional typehint.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.