mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3219: Ensure PersistentCollection->count() is of type int #3984
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?
Originally created by @doctrinebot on GitHub (Jul 21, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user flip101:
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/PersistentCollection.php#L566-L577 does not always return an int. How do i know this? because i compare this count with a php count() with strict checking.
If ($collection->count() !== count($somethingElse)) {
throw new Exception($collection->count() . ' is different then ' . count($somethingElse));
}
and at one time this message showed: 3 is different then 3
@doctrinebot commented on GitHub (Jul 21, 2014):
Comment created by flip101:
My colleague told me that it was his mistake somehow, so i don't know how valid this really is !!!