Closed (fixed)
Project:
Media Entity Link
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Mar 2026 at 13:16 UTC
Updated:
14 May 2026 at 13:40 UTC
Jump to comment: Most recent
Comments
Comment #2
danrodComment #3
aayushpathak commentedworking on it
Comment #4
aayushpathak commentedComment #6
vinodhini.e commentedHi,
Tested this module on Drupal 11.2.5.
Ran PHPCS coding standards.
No issues were reported. Thanks.
Comment #7
daniel.j commentedCurrently this project does not have it's own phpstan.neon file. The config that it is using in the gitlab pipeline is the base Drupal one, which is set to level 0 (https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/as...).
I wonder if a phpstan.neon could be added with a standard level in order to ensure good php standards into the future.
Comment #8
d.fisher commentedSounds sensible. Should we do that on MR !12 or in a separate issue?
Comment #9
danrodI suggest adding it in the same MR !12.
Comment #10
d.fisher commentedAdded phpstan.neon and there be issues:
https://git.drupalcode.org/project/media_entity_link/-/jobs/9591949
Setting this back to "needs work".
Comment #11
aayushpathak commentedHi,
Thank you for the review. I ran PHPStan locally and did not encounter any errors.
Output for reference:
[OK] No errors
It seems the CI pipeline may be using a different configuration or level.
Thanks!
Comment #12
d.fisher commentedNice. Marking this as "needs review" again now pipelines are passing.
Comment #13
d.fisher commented@danrod and @daniel.j would either of you be able to review the merge request now that everything is passing and provide your feedback. In the meantime I will test this is all still working as expected on a fresh site install.
Comment #14
d.fisher commentedI am satisfied that the MR applies cleanly and the functionality is unaffected. But I'd prefer that someone else signs off on the quality of the PHP changes. They look OK to me but I spend more time in the frontend of Drupal than the backend so the latest and greatest best practices are not my area of expertise!
Comment #15
daniel.j commentedLooked over changes and they all look good to me. Linting and unit tests pass for me and pipeline. Checked that the pipeline is using the correct neon file.
Comment #16
d.fisher commentedNice I'll get this one merged.
Comment #18
d.fisher commentedComment #21
d.fisher commentedJust tagged a 2.0.6 release with this in it.