Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2023 at 21:00 UTC
Updated:
14 Feb 2024 at 08:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heddnComment #3
grimreaperHi,
@heddn, thanks for the patch.
But it seems not ready for PHP 8.2 regarding tests results. Or is not related?
Comment #4
heddnWorking on fixes. I found those failures come from #3343198: Improve documentation of hook_theme_suggestions_HOOK_alter().
Comment #5
heddnThis probably is a little overboard. But it fixes the failing test and a few other test warnings that came from phpunit. Apparently naming an abstract class ending in
Testisn't desirable any more.I'm also getting some JS test failures now, but I don't know if that is because of flaky js testing or not, so we'll see how the testbot likes things.
Comment #6
grimreaperHi,
Thanks for the updated patch.
Here is my review.
Why not having only `$this->definition['theme hook'] = $altered_hook`?
Should an inheritdoc be added?
Why this addition?
Comment #7
heddn1) That's an oversight. It shouldn't be there.
2) I don't think there is a parent variable to inherit doc from. If we need to repeat the variable name in a comment, I can do that.
3) I don't remember. If it isn't needed to get passing tests, we can remove it.
Comment #8
pdureau commentedComment #9
grimreaperHi,
I have enabled Gitlab CI and fix the problem of templates suggestions in #3417517: Enable Gitlab CI + Update README + Coding standards.
@heddn, Could you please create a MR on the latest codebase. I think with the change from your first patch only.
Comment #11
heddnTests pass green on php 8.2 in the bot. I couldn't figure out an easy way to run a test-only pass on the code to demonstrate the error w/o any fixes..
Comment #12
grimreaperThanks a lot for the quick response time.
No problem. It fixes a PHPStan error so I guess it is ok.
I will just push a PHPCS fix.
Comment #14
grimreaper