Parameter must be an array or an object that implements Countable
Open, Needs TriagePublic

Description

Warning: count(): Parameter must be an array or an object that implements Countable in mediawiki/extensions/PageForms/includes/forminputs/PF_TextWithAutocompleteInput.php on line 145

In PHP7.2 null isn't countable any more.

Samwilson created this task.Sun, Nov 4, 8:37 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSun, Nov 4, 8:37 AM

Change 471535 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[mediawiki/extensions/PageForms@master] Return empty array for autocomplete values with no source

https://gerrit.wikimedia.org/r/471535

CCicalese_WMF moved this task from Backlog to Other on the PHP 7.2 support board.Tue, Nov 6, 4:08 AM