Closed (fixed)
Project:
Drupal core
Version:
9.0.x-dev
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2020 at 20:27 UTC
Updated:
12 May 2020 at 08:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
longwaveComment #3
longwaveComment #4
longwaveScope widened to include more classes, as per the below list - some false positives here though
Comment #5
longwaveComment #6
berdirthis one is a bit strange as there's only a single subclass, but doesn't matter too much. Better one too much where we don't add the return type than the opposite and breaking some contrib.
List of changed classes makes sense based on the output above. RTBC if it passes tests.
As maintainer of paragraphs, I'd appreciate this being committed as I'm otherwise forced to add : void to paragraphs.module which would require PHP 7.1.
As discused in slack, removing them again should not be an issue, even if some modules already updated their sbuclasses. Subclasses can define the return type, or the original issue of adding it to all non-base classes wouldn't have worked in the first place.
Comment #7
heddn+1 on RTBC.
Comment #9
alexpottneed to remove it from \Drupal\Tests\media\Functional\MediaFunctionalTestTrait::setUp too - which imo makes sense.
Comment #10
jungleAddressed #9. Testing failure should be fixed.
Comment #11
jungleAs testings passed, per comments in #6 and #7, I am setting this back to RTBC. If this is counted as self-RTBC, please feel free to revert it back. Thanks!
Comment #12
longwaveRTBC +1 :)
Comment #13
alexpottCommitted and pushed 9632fb98a1 to 9.1.x and ef544cd00b to 9.0.x. Thanks!