- Issue created by @spokje
- Merge request !3794Issue #3352916: Fix PHPStan L1 errors "Call to method foo() on an unknown class Bar\Baz." โ (Closed) created by spokje
- Status changed to Needs workover 2 years ago 2:41pm 7 April 2023
- First commit to issue fork.
- Status changed to Needs reviewover 2 years ago 2:22pm 14 April 2023
- Status changed to Needs workover 2 years ago 3:42pm 14 April 2023
- ๐ฎ๐นItaly mondrake ๐ฎ๐นLeft a comment in the MR. Can you help me understand @Spokje? 
- Status changed to Needs reviewover 2 years ago 2:44pm 15 April 2023
- ๐ณ๐ฑNetherlands spokje@mondrake: Tried a (weak) explanation in the MR thread. 
- ๐ณ๐ฑNetherlands spokje@mondrake Makes sense, will change it shortly. If it turns out to be too much we can always revert to the "minimal" working cas at https://git.drupalcode.org/project/drupal/-/merge_requests/3794/diffs?co... 
- Assigned to spokje
- Status changed to Needs workover 2 years ago 6:07pm 15 April 2023
- last updateover 2 years ago 29,202 pass
- ๐ณ๐ฑNetherlands spokjeBTW: is the issue title still accurate? You're right, we can be more specific here. 
- last updateover 2 years ago Custom Commands Failed
- last updateover 2 years ago 29,069 pass, 42 fail
- last updateover 2 years ago 29,109 pass, 26 fail
- last updateover 2 years ago 29,198 pass, 2 fail
- last updateover 2 years ago 29,202 pass
- Issue was unassigned.
- Status changed to Needs reviewover 2 years ago 5:37pm 16 April 2023
- Status changed to RTBCover 2 years ago 5:45pm 16 April 2023
- ๐ฎ๐นItaly mondrake ๐ฎ๐นTo me, this is the cleanest way to fix this messโฆ 
- Status changed to Needs workover 2 years ago 9:43pm 16 April 2023
- ๐ฌ๐งUnited Kingdom longwave UKAdding an argument to the interface is not backward compatible with any existing implementations, and there are a handful in contrib at least: http://grep.xnddx.ru/search?text=getSortedDefinitions&filename= 
- ๐ฎ๐นItaly mondrake ๐ฎ๐นI have opened ๐ฑ Document how to add additional parameters to interface methods Fixed to discuss how to manage cases where interfaces are wrong and we cannot change them 
- ๐ณ๐ฑNetherlands spokjeAnd another PHPStan issue grinds to a halt, postponing on ๐ฑ Document how to add additional parameters to interface methods Fixed 
- last updateover 2 years ago 29,283 pass
- Status changed to Postponedover 2 years ago 3:39pm 18 April 2023
- ๐ฎ๐นItaly mondrake ๐ฎ๐นLooking for ๐ Replace func_get_args with variable-length argument in FormBuilder Needs review to go in, that sets a reference for prepping the addition of arguments to interface methods, and this could follow. 
- last updateover 2 years ago 29,283 pass
- ๐ฎ๐นItaly mondrake ๐ฎ๐นTypehinting of return type follows the covariance rules https://www.php.net/manual/en/language.oop5.variance.php, so adding one to the interface means BC break because implementing classes must at least implement the same return type. 
- Status changed to Needs workabout 2 years ago 10:21am 24 August 2023
- ๐ณ๐ฑNetherlands bbrala NetherlandsHow to change signatures in interfaces has been documented: ๐ฑ Document how to add additional parameters to interface methods Fixed 
- Status changed to Needs review11 months ago 1:51pm 5 December 2024
- ๐ฌ๐งUnited Kingdom longwave UKTraits can have abstract methods, if we do that we can remove the @var and it seems happy enough? See MR!10468. 
- ๐บ๐ธUnited States smustgraveNice! I was not aware of the abstract methods approach but will be remembering it. Change appears pretty straight forward and addresses the task. LGTM 
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10Committed to 11.x thanks! 
- 
            
              larowlan โ
             committed bf6900b7 on 11.x
Issue #3352916 by spokje, mondrake, longwave, vladimiraus: Fix PHPStan... 
 
- 
            
              larowlan โ
             committed bf6900b7 on 11.x
- Automatically closed - issue fixed for 2 weeks with no activity.