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)
Jun 20 2025, 9:20 AM
Unknown Object (File)
Jun 6 2025, 5:03 PM
Unknown Object (File)
Jun 2 2025, 9:30 PM
Unknown Object (File)
May 10 2025, 3:17 AM
Unknown Object (File)
May 10 2025, 12:57 AM
Unknown Object (File)
May 6 2025, 9:06 AM
Unknown Object (File)
May 5 2025, 3:05 PM
Unknown Object (File)
Apr 24 2025, 12:12 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