1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-16 16:58:38 +01:00

Fix a possible count(null) in DifferentialRevisionActionTransaction

Summary:
This change prevents the following error when using PHP 7.2:

```
ERROR 2: count(): Parameter must be an array or an object that implements Countable at [/usr/local/lib/php/phabricator/src/applications/differential/xaction/DifferentialRevisionActionTransaction.php:132]
```

A similar issue was fixed in D18964

Test Plan: Tested in a live system.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D19242
This commit is contained in:
Tino Breddin 2018-03-21 07:39:34 -07:00 committed by epriestley
parent 3bf8d5682e
commit 73b68bc2a6

View file

@ -80,7 +80,7 @@ abstract class DifferentialRevisionActionTransaction
DifferentialRevision $revision) {
return array(
array(),
null,
array(),
);
}