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)
Tue, Nov 19, 6:50 AM
Unknown Object (File)
Thu, Nov 14, 10:54 PM
Unknown Object (File)
Wed, Nov 13, 1:02 AM
Unknown Object (File)
Tue, Nov 12, 6:58 AM
Unknown Object (File)
Mon, Nov 11, 12:27 AM
Unknown Object (File)
Wed, Nov 6, 4:58 PM
Unknown Object (File)
Oct 15 2024, 7:50 PM
Unknown Object (File)
Oct 9 2024, 8:32 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