Automattic / Automattic/bulk-user-management

PHP 7.3 Warning for count()

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
40
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I believe this would also appear in PHP7.2 but I haven't tested yet.

With the plugin network activated and editing the Bulk User Management admin screen, I get this:

> Warning: count(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/bulk-user-management/includes/class-bulk-user-table.php on line 201

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect includes/class-bulk-user-table.php at line 201 and reproduce the warning from the Bulk User Management admin screen with the plugin network activated. Done means the count() warning no longer appears while editing that screen; the issue does not mention a test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.