HomePhabricator

Remove count() of null value

Authored by Umherirrender on Aug 23 2018, 4:07 PM.

Description

Remove count() of null value

php7 gives:
count(): Parameter must be an array or an object that implements
Countable
null or [] are both evaluate to false, so just remove the count

Change-Id: Id92dbd48f308d1e9dffa086699e0e944744aeeaa
(cherry picked from commit 516eeda19e1d7bb67718fcb8cb4c9c78fc5f28aa)

Details

Committed
ReedyDec 18 2018, 5:28 PM
Parents
rECHO045eb9eea1cd: Avoid count()ing where not necessary
Branches
Unknown
Tags
Unknown
ChangeId
Id92dbd48f308d1e9dffa086699e0e944744aeeaa