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