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:
parent
e12961802b
commit
978f6edf19
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ final class AphrontIsolatedDatabaseConnection
|
|||
// the relationship between objects, not their exact insertion order. This
|
||||
// guarantees that IDs are unique but makes it impossible to hard-code tests
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue