Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The 'app.root' service will return a string and this will produce mentioned error and incorrect .phpstorm.meta.php file with entry like this:
\Drupal::service('') => [
'app.root' instanceof \,
],
Patch will follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | devel-2384229-1.patch | 809 bytes | RoSk0 |
Comments
Comment #1
RoSk0Patch to fix the issue.
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedIs phpstorm.drush.inc even needed anymore given that there is a Symfony/Drupal Bridge plugin? Its not 100% clear to me if the Bridge provides all the same features.
Comment #3
willzyx CreditAttribution: willzyx commented@moshe
I think we still need this feature and using drush we'd afford integration with PhpStorm without any plugin.
Can we take this patch into account? (or the patch in #2419235: phpstorm-metadata should only dump all services objects.)
Comment #4
willzyx CreditAttribution: willzyx commentedClosed as duplicated of #2419235: phpstorm-metadata should only dump all services objects.