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)
Sat, May 10, 3:17 AM
Unknown Object (File)
Sat, May 10, 12:57 AM
Unknown Object (File)
Tue, May 6, 9:06 AM
Unknown Object (File)
Mon, May 5, 3:05 PM
Unknown Object (File)
Thu, Apr 24, 12:12 PM
Unknown Object (File)
Apr 13 2025, 4:02 AM
Unknown Object (File)
Apr 12 2025, 1:22 PM
Unknown Object (File)
Apr 11 2025, 11:22 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