- Issue created by @mglaman
- πΊπΈUnited States mglaman WI, USA
Also. R before T so it fixes alphabetical sorting π€·ββοΈ. May not be testable until β¨ Use PHPStan for deprecation checking Active
- last update
over 1 year ago 30,058 pass - @mglaman opened merge request.
- πΊπΈUnited States mglaman WI, USA
Actually, it looks like I can fix this in phpstan-drupal after all. So it can bridge the gap without committing this https://github.com/mglaman/phpstan-drupal/pull/596
- Status changed to Needs review
over 1 year ago 8:17pm 24 August 2023 - πΊπΈUnited States mglaman WI, USA
Nevermind, I forgot it asserts an incorrect error in the test:
$errors = []; if (version_compare(\Drupal::VERSION, '10.1', '>=')) { $errors[] = [ 'Call to deprecated method loadRevision() of class Drupal\Core\Entity\EntityStorageInterface: in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead.', 12 ]; }
This is from:
$genericContentEntityStorage = \Drupal::entityTypeManager()->getStorage('foo'); assert($genericContentEntityStorage instanceof ContentEntityStorageInterface); $genericContentEntityStorage->loadRevision(1);
So the generic content entity storage interface doesn't work due to ordering of extends.
- Status changed to RTBC
over 1 year ago 8:57pm 24 August 2023 - π³π±Netherlands bbrala Netherlands
We talked about this on Slack and there is no real possible problem that this could bring. Tests are also green. Setting rtbc
- Status changed to Needs work
over 1 year ago 3:28pm 25 August 2023 - π¬π§United Kingdom catch
This is going to need a re-roll after π Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again Fixed
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,060 pass - Status changed to Needs review
over 1 year ago 6:04am 26 August 2023 - Status changed to RTBC
over 1 year ago 6:28am 26 August 2023 - π³π±Netherlands bbrala Netherlands
Baseline updated, rebated, looking good.
- π³π±Netherlands spokje
Come to think of it: There might very well be a Coder follow-up in here to force the
implements
to be in alphabetical order? - Status changed to Fixed
over 1 year ago 7:48am 26 August 2023 - π¬π§United Kingdom catch
Committed/pushed to 11.x, thanks!
Alphabetical implements seems worth opening a follow-up issue for if that'll help the phpstan baseline, would also match how we alphabetise use statements.
- π³π±Netherlands spokje
Opened Coder issue π Check alphabetical ordering for "implements" Closed: outdated
- π³π±Netherlands bbrala Netherlands
Its not about alphabetical but about load order, so please don't force alphabetical :)
- π³π±Netherlands spokje
Also. R before T so it fixes alphabetical sorting π€·ββοΈ
Its not about alphabetical but about load order, so please don't force alphabetical :)
Confused now, but closed Coder issue anyway.
- π³π±Netherlands bbrala Netherlands
It's a cooincedence it's alphabetical, there is a load order to interfaces in php. Which is logica but very edge casey. We might run into this in the future. See the Slack thread.
- π³π±Netherlands kingdutch
Just copying in my Slack message in case people don't want to (or can no longer) go there.
The TL;DR is: "Although undocumented, PHP, consistently and by design, evaluates interfaces from right to left"
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 2:53pm 8 November 2023 - ππΊHungary mxr576 Hungary
Can this be also cherry-picked back to 10.1.x?