Page MenuHomePhabricator

Fix a possible `count(null)` in DifferentialRevisionActionTransaction
ClosedPublic

Authored by tolbrino on Mar 21 2018, 8:51 AM.
Tags
None
Referenced Files
F14400472: D19242.id.diff
Sun, Dec 22, 7:43 PM
Unknown Object (File)
Tue, Dec 17, 10:37 AM
Unknown Object (File)
Fri, Dec 13, 6:22 PM
Unknown Object (File)
Mon, Dec 9, 12:23 AM
Unknown Object (File)
Sun, Dec 8, 4:44 PM
Unknown Object (File)
Fri, Dec 6, 11:46 PM
Unknown Object (File)
Wed, Dec 4, 7:29 PM
Unknown Object (File)
Tue, Dec 3, 7:09 AM
Subscribers

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable