At core 9.1 we get

Declaring ::setUp without a void return typehint in Drupal\Tests\scheduler\Functional\X is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0. See https://www.drupal.org/node/3114724

Change Record https://www.drupal.org/node/3114724

Adding the setUp(): void type hint wiill require PHP7.1 minimum, although this only affects the test files.

CommentFileSizeAuthor
#2 3166772-2.setup-void.patch8.99 KBjonathan1055

Comments

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

Status: Active » Needs review
StatusFileSize
new8.99 KB

Initial patch. As this only affects testing we can assume that any developer will have at least PHP7.1 We do not need to test at PHP7.0 anymore, even though the module should work perfectly OK at 7.0

  • jonathan1055 committed 67e90ca on 8.x-1.x
    Issue #3166772 by jonathan1055: [9.1] Declaring ::setUp without a void...
jonathan1055’s picture

Status: Needs review » Fixed

Committed.
Travis test https://travis-ci.org/github/jonathan1055/scheduler/builds/729247902 shows the reduced deprecation counts

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.