Page MenuHomePhabricator

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

Authored by epriestley on Jan 29 2018, 9:18 PM.
Tags
None
Referenced Files
F15537101: D18964.id45469.diff
Thu, Apr 24, 12:12 PM
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
Mar 27 2025, 5:50 AM
F15364241: D18964.id.diff
Mar 11 2025, 1:07 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
Branch
countnull
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19253
Build 26018: Run Core Tests
Build 26017: arc lint + arc unit