- Issue created by @dineshkumarbollu
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:49am 9 May 2023 - 🇮🇳India dineshkumarbollu
Hi
I fix the all phpcs issues including Dependency Injection except one service,
And i didn't fix the phpcs issue in module.install file because commented code are there in that file. - Status changed to Needs work
over 1 year ago 9:17am 9 May 2023 - 🇨ðŸ‡Switzerland piridium
Thank you!
There is a problem with the declaration of the method 'create':
Fatal error: Could not check compatibility between Drupal\imagelightbox\Plugin\Field\FieldFormatter\MediaImagelightboxFormatter::create(Drupal\imagelightbox\Plugin\Field\FieldFormatter\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) and Drupal\Core\Field\FormatterBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition), because class Drupal\imagelightbox\Plugin\Field\FieldFormatter\ContainerInterface is not available in /Users/pi/Sites/D10/d10/web/modules/contrib/imagelightbox/src/Plugin/Field/FieldFormatter/MediaImagelightboxFormatter.php on line 60
- 🇮🇳India dineshkumarbollu
I think i forgot to add Symfony\Component\DependencyInjection\ContainerInterface class
I will on this provide patch
Thanks.
- Status changed to Needs review
over 1 year ago 9:52am 9 May 2023 - Status changed to Needs work
over 1 year ago 10:10am 9 May 2023 - 🇨ðŸ‡Switzerland piridium
The patch provided in #5 resolves the error but opens a new one:
When trying to change the field formatter to ImageLightBox (/admin/structure/types/manage/BUNDLENAME/display) the ajax call does not finish.
- First commit to issue fork.
- Assigned to akshaydalvi212
- 🇮🇳India akshaydalvi212
I will remove the reported errors and raise a MR for the same.
- @akshaydalvi212 opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:56pm 9 May 2023 - 🇮🇳India akshaydalvi212
I raised the MR which removes all the reported errors only
"unused variable $settings" need to be confirmed by the module's maintainers.
kindly review the MR. - Status changed to Needs work
over 1 year ago 6:40am 10 May 2023 - 🇨ðŸ‡Switzerland piridium
Thank you for the effort, but your changes raised a new bug. Please test your changes before committing.
Visit /admin/structure/types/manage/BUNDLENAME/display
Fatal error: Declaration of Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImagelightboxFormatter::create(Drupal\imagelightbox\Plugin\Field\FieldFormatter\ContainerInterface $container) must be compatible with Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) in [...]/web/modules/contrib/imagelightbox/src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php on line 43
-
piridium →
committed 90910453 on 2.2.x
Fix the issues reported by phpcs #3359038
-
piridium →
committed 90910453 on 2.2.x
-
piridium →
committed 90910453 on 2.x
Fix the issues reported by phpcs #3359038
-
piridium →
committed 90910453 on 2.x
- Status changed to Fixed
over 1 year ago 7:27am 10 May 2023 - 🇨ðŸ‡Switzerland piridium
I ran phpcs and phpcbf and committed the coding style fixes without the additional changes out of scope of this issue.
Please note, that we are switching to 2.x-dev for further development as we figured it is the recommended way of not having dev-versions for every minor version.
Automatically closed - issue fixed for 2 weeks with no activity.