Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#37271 closed defect (bug) (fixed)

PHP 7.1.0: "Too few arguments" error for Tests_Ajax_DimComment::test_with_bad_id()

Reported by: ocean90 Owned by: ocean90
Milestone: 4.6 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Focuses: Cc:


See https://wiki.php.net/rfc/too_few_args which is implemented in PHP 7.1.0alpha2.

1) Tests_Ajax_DimComment::test_with_bad_id
Error: Too few arguments to function Tests_Ajax_DimComment::test_with_bad_id(), 0 passed and exactly 1 expected


Change History (1)

#1 @ocean90
5 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 37950:

Unit Tests: Remove an unused parameter from Tests_Ajax_DimComment::test_with_bad_id().

Prevents a "too few arguments" error in PHP 7.1.0.

Fixes #37271.

Note: See TracTickets for help on using tickets.