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)
Mon, Apr 29, 1:59 PM
Unknown Object (File)
Sat, Apr 27, 12:57 AM
Unknown Object (File)
Wed, Apr 24, 10:04 PM
Unknown Object (File)
Sun, Apr 21, 4:11 PM
Unknown Object (File)
Wed, Apr 17, 2:23 PM
Unknown Object (File)
Thu, Apr 11, 7:22 AM
Unknown Object (File)
Mar 31 2024, 4:19 AM
Unknown Object (File)
Mar 22 2024, 2:35 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