HomePhorge

Fix a possible `count(null)` in DifferentialRevisionActionTransaction

Description

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

Details

Provenance
Tino BreddinAuthored on Mar 21 2018, 7:39 AM
epriestleyCommitted on Mar 21 2018, 7:39 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP3bf8d5682ed0: Fix outdated link for Font Awesome icon set
Branches
Unknown
Tags
Unknown

Event Timeline