Problem/Motivation
Let's fix all PHPStan Lvl 1 errors Anonymous function has an unused use $foo.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 3326371.10.0.x-16.patch | 10.15 KB | spokje |
| #16 | interdiff.12-16.txt | 5.58 KB | spokje |
Issue fork drupal-3326371
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3326371-fix-phpstan-l2
changes, plain diff MR !3099
Comments
Comment #3
spokjeComment #4
spokjeComment #5
spokjeComment #6
mondrakeLooks good, thanks.
Comment #7
alexpottCommitted 1a63aa6 and pushed to 10.1.x. Thanks!
Comment #10
spokjeDo we want to backport this to 10.0.x?
It's a test/PHPStan-only change and will keep both branches more aligned.
Comment #11
mondrake+1 for a backport to 10.0.x
Comment #12
spokjeAdding a 10.0.x patch
Comment #13
spokjeComment #14
mondrakeThanks
Comment #15
xjmDoes not apply to 10.0.x currently.
Comment #16
spokjeCan I RTBC a reroll I did myself? Let's find out :)
Comment #17
xjmAttempting to commit locally now. I'll let you know in an hour if that edgecase perf improvement was as promised...
Comment #19
xjmWhy yes, yes it does! 4 mins instead of 80.
Comment #20
spokjeSame down here, about 1/3 off the time when creating a complete new baseline, higher when having a primed cache and only a few files have changed.