Page MenuHomePhabricator

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

Authored by epriestley on Jan 29 2018, 9:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 9, 5:08 AM
Unknown Object (File)
Sun, Feb 9, 5:08 AM
Unknown Object (File)
Sun, Feb 9, 5:08 AM
Unknown Object (File)
Sun, Feb 9, 5:08 AM
Unknown Object (File)
Sun, Feb 2, 8:19 AM
Unknown Object (File)
Sat, Jan 25, 9:36 PM
Unknown Object (File)
Fri, Jan 24, 11:27 PM
Unknown Object (File)
Fri, Jan 24, 11:27 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