Page MenuHomePhabricator

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

Authored by epriestley on Jan 29 2018, 9:18 PM.
Tags
None
Referenced Files
F15495373: D18964.id45474.diff
Sun, Apr 13, 4:02 AM
F15492332: D18964.id45469.diff
Sat, Apr 12, 1:22 PM
F15489682: D18964.id.diff
Fri, Apr 11, 11:22 AM
F15486429: D18964.diff
Thu, Apr 10, 7:07 AM
F15454767: D18964.diff
Sat, Mar 29, 8:14 PM
F15443719: D18964.id.diff
Thu, Mar 27, 5:50 AM
F15364241: D18964.id.diff
Mar 11 2025, 1:07 PM
Unknown Object (File)
Feb 21 2025, 12:44 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