Page MenuHomePhabricator

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

Authored by epriestley on Jan 29 2018, 9:18 PM.
Tags
None
Referenced Files
F18959965: D18964.diff
Nov 13 2025, 9:13 AM
F18789495: D18964.id45474.diff
Oct 15 2025, 9:58 AM
F18769964: D18964.id45474.diff
Oct 8 2025, 10:08 AM
F18764549: D18964.diff
Oct 7 2025, 6:35 AM
F18749410: D18964.diff
Oct 4 2025, 3:47 AM
F18737577: D18964.id.diff
Oct 1 2025, 11:29 AM
F18727653: D18964.diff
Sep 30 2025, 8:38 AM
F18566516: D18964.id.diff
Sep 9 2025, 2:41 PM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/php7-2-exception-count-parameter-must-be-an-array-or-an-object-that-implements-countable/1031.

PHP7.2 raises a warning about count(scalar) (GREAT!) and we have one here if the caller doesn't setErrors(...).

Test Plan

Sanity-checked usage of $this->errors.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable