- Issue created by @longwave
- Status changed to Needs review
about 1 year ago 11:07am 9 December 2023 - π¬π§United Kingdom longwave UK
Needless to say this is for 11.x only.
- Status changed to Needs work
about 1 year ago 1:33pm 9 December 2023 - π¬π§United Kingdom longwave UK
Hm, maybe the debug class loader isn't working like I thought, because we should have been notified already about these subclasses?
- π³π±Netherlands spokje
, because we should have been notified already about these subclasses?
Not sure I follow.
In the MR we added return types where none where there before, now PHPStan complains some sub-classes have defined types that aren't covariant with the newly defined ones.
How could we be warned before we added the return types on the "super" classes?
- Status changed to Needs review
about 1 year ago 5:18pm 14 January 2024 - π¬π§United Kingdom longwave UK
Re #7 e.g.
AllowedValuesConstraintValidator::validate()
extends a Symfony validator that was tagged@return void
in Symfony 6. But I guess if we have no test coverage of this, then we won't trigger the deprecation.But then what about
SupernovaGenerator::setContext()
, which is part of a test - wonder if this is just because the inheritance chain is more complicated, but ultimatelysetContext()
belongs to a Symfony interface method that was also tagged@return void
. - Status changed to RTBC
about 1 year ago 4:52pm 16 January 2024 - πΊπΈUnited States smustgrave
Wasn't sure how best to find others.
Did a search for phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn and all instances have been removed in core. Tests are green so leaning on that.
This seems like a small enough change to mark without having to wait a week.
- First commit to issue fork.
- π³πΏNew Zealand quietone
Rebase. Only conflict was in DrupalKernel.php and it was straightforward to fix.
- Status changed to Fixed
11 months ago 4:24pm 27 February 2024 -
alexpott β
committed f4167b86 on 11.x
Issue #3407159 by longwave, quietone: [11.x] Add void returns for...
-
alexpott β
committed f4167b86 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.