Page MenuHomePhabricator

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

Authored by epriestley on Jan 29 2018, 9:18 PM.
Tags
None
Referenced Files
F18749410: D18964.diff
Sat, Oct 4, 3:47 AM
F18737577: D18964.id.diff
Wed, Oct 1, 11:29 AM
F18727653: D18964.diff
Tue, Sep 30, 8:38 AM
F18566516: D18964.id.diff
Tue, Sep 9, 2:41 PM
F18502022: D18964.diff
Sep 4 2025, 10:08 PM
F18246915: D18964.id45469.diff
Aug 21 2025, 12:08 PM
F18101846: D18964.id45469.diff
Aug 9 2025, 4:01 PM
F18097222: D18964.id.diff
Aug 8 2025, 12:05 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