1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-09 14:21:02 +01:00

Add a missing (int) cast to diff IDs for new "transaction.search" method

Summary: These come out of the database as strings (see T12678), force them to integers for the API.

Test Plan: Called `transaction.search`, got integers in JSON instead of strings.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D18476
This commit is contained in:
epriestley 2017-08-25 07:23:54 -07:00
parent 94cad30ac3
commit 213e4ec9b5

View file

@ -40,7 +40,7 @@ final class DifferentialRevisionInlineTransaction
return array(
'diff' => array(
'id' => $diff->getID(),
'id' => (int)$diff->getID(),
'phid' => $diff->getPHID(),
),
'path' => $changeset->getDisplayFilename(),