Page MenuHomePhabricator

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

Authored by tolbrino on Mar 21 2018, 8:51 AM.

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