1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 12:30:56 +01:00

Fix code not working in HHVM

Summary:
It's also more readable so I think it's OK.
I've also filed a bug for HHVM.

Test Plan: `arc unit` in HHVM

Reviewers: epriestley, jungejason

Reviewed By: jungejason

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2551
This commit is contained in:
vrana 2012-05-23 14:08:43 -07:00
parent e12961802b
commit 978f6edf19

View file

@ -112,7 +112,8 @@ final class AphrontIsolatedDatabaseConnection
// the relationship between objects, not their exact insertion order. This // the relationship between objects, not their exact insertion order. This
// guarantees that IDs are unique but makes it impossible to hard-code tests // guarantees that IDs are unique but makes it impossible to hard-code tests
// against this specific implementation detail. // against this specific implementation detail.
$this->insertID = (self::$nextInsertID += mt_rand(1, 10)); self::$nextInsertID += mt_rand(1, 10);
$this->insertID = self::$nextInsertID;
$this->affectedRows = 1; $this->affectedRows = 1;
} }