- Issue created by @jonathan1055
- ๐ฎ๐ณIndia dev16.addweb
silvi.addweb โ made their first commit to this issueโs fork.
- Merge request !7Fix PHPstan warning \Drupal calls should be avoided in classes โ (Merged) created by Unnamed author
- Status changed to Needs work
8 months ago 1:23pm 27 May 2024 - ๐ฌ๐งUnited Kingdom jonathan1055
Thanks for starting work on this. The change seem to remove the PHPStan warning, compare the updated job with scheduled pipeline job
However, the nightwatch tests now fail, whereas on the scheduled pipepline they pass.
- ๐ฌ๐งUnited Kingdom jonathan1055
Just rebased the MR. Same as before, PHPStan now passes but the Nighwatch tests fail. Does it need an argument in the .services.yml ?
- ๐ฌ๐งUnited Kingdom jonathan1055
jonathan1055 โ changed the visibility of the branch 3439980-fix-phpstan-warning to hidden.
- ๐ฌ๐งUnited Kingdom jonathan1055
So, it did need the argument in .services.yml and because there is no short name/ alias defined in the core services file, it has to be the full class name
arguments: - '@Drupal\Component\DependencyInjection\ReverseContainer'
This works now, Nightwatch tests pass and the pipeline is fully green. Ready for review.
- First commit to issue fork.
-
fjgarlin โ
committed 398a68cc on 8.x-1.x authored by
silvi.addweb โ
Issue #3439980 by jonathan1055, silvi.addweb: Fix PHPstan warning \...
-
fjgarlin โ
committed 398a68cc on 8.x-1.x authored by
silvi.addweb โ
- ๐ช๐ธSpain fjgarlin
Yup. Seems to be defined that way in core: https://git.drupalcode.org/project/drupal/-/blob/11.x/core/core.services...
Given that this project is part of the "gitlab_templates" downstream pipelines and that we want to keep the full pipeline green to avoid false errors upstream AND that the change is small and looks good, I'll merge this.
Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.