Deprecate notices in tests.

Declaring ::setUp without a void return typehint in Drupal\Tests\entity\%ClassTest::%TestFunction is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0.

void return type is only available with PHP 7.1, but Drupal 8 needs to support PHP 7.0.8, so again that change can't be made until D8 is no longer supported. That will be another month.

CommentFileSizeAuthor
#2 3241533-2.patch10.12 KBaardwolf

Comments

AardWolf created an issue. See original summary.

aardwolf’s picture

StatusFileSize
new10.12 KB
tr’s picture

Status: Active » Needs review
tr’s picture

Status: Needs review » Reviewed & tested by the community

D8 support ends on 2 Nov 21, so we should wait until then to commit this.

tr’s picture

Status: Reviewed & tested by the community » Fixed

Committed #2.

  • TR committed 520454d on 8.x-1.x authored by AardWolf
    Issue #3241533 by AardWolf: Deprecate notices in tests for setUp return...

Status: Fixed » Closed (fixed)

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