Page MenuHomePhabricator

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

Authored by epriestley on Jan 29 2018, 9:18 PM.
Tags
None
Referenced Files
F18566516: D18964.id.diff
Tue, Sep 9, 2:41 PM
F18502022: D18964.diff
Thu, Sep 4, 10:08 PM
F18246915: D18964.id45469.diff
Thu, Aug 21, 12:08 PM
F18101846: D18964.id45469.diff
Aug 9 2025, 4:01 PM
F18097222: D18964.id.diff
Aug 8 2025, 12:05 PM
F18090939: D18964.id45474.diff
Aug 6 2025, 6:12 PM
F17908704: D18964.diff
Jul 29 2025, 1:56 PM
F17822709: D18964.diff
Jul 26 2025, 3:58 AM
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