The drupal_root parameter is deprecated

Created on 15 October 2024, 2 months ago

Problem/Motivation

I am getting the following error on almost all modules and I really don't understand what to look for.

PHPStan command failed:

/usr/bin/php /var/www/vendor/bin/phpstan analyse --memory-limit=1500M --error-format=json --configuration=/tmp/upgrade_status/deprecation_testing.neon /var/www/web/modules/contrib/<any module here>
Command output:

/** * @file * Installation actions for menu_markup. */ /** * Implements hook_install(). */ function menu_markup_install() { // No specific installation actions required. } No! This is not for you! Your Drupal installation does not support utf8mb4. Have a fruitless look at https://www.drupal.org/docs/7/api/schema-api/data-types/encoding-collation-and-storage and then forget this module.Caught exception: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.
Command error:

PHP Deprecated: The drupal_root parameter is deprecated. Remove it from your configuration. Drupal Root is discoverd automatically. in /var/www/vendor/mglaman/phpstan-drupal/src/Drupal/DrupalAutoloader.php on line 92 Deprecated: The drupal_root parameter is deprecated. Remove it from your configuration. Drupal Root is discoverd automatically. in /var/www/vendor/mglaman/phpstan-drupal/src/Drupal/DrupalAutoloader.php on line 92

I have 3 markup related modules installed.

Markup
Markup Twig
Field Group Markup

How can I find out which one is the possible culprit?
Thank you!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.3

Component

Code

Created by

🇦🇹Austria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024