Page MenuHomePhabricator

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

Authored by tolbrino on Mar 21 2018, 8:51 AM.
Tags
None
Referenced Files
F15427577: D19242.id46071.diff
Sun, Mar 23, 3:00 PM
F15416219: D19242.diff
Thu, Mar 20, 9:53 AM
F15377478: D19242.diff
Thu, Mar 13, 9:07 AM
Unknown Object (File)
Feb 26 2025, 12:31 PM
Unknown Object (File)
Feb 18 2025, 9:41 PM
Unknown Object (File)
Feb 18 2025, 4:29 AM
Unknown Object (File)
Feb 15 2025, 1:09 AM
Unknown Object (File)
Feb 10 2025, 10:26 PM
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
Branch
fix_count_php72
Lint
Lint Passed
Unit
Tests Skipped
Build Status
Buildable 19889
Build 26954: arc lint + arc unit