Fix PHP 8.3/8.4 issues

Created on 28 March 2025, about 2 months ago

When on PHP 8.3 (or 8.4), I get many 'Deprecated function' warnings

Deprecated function: Drupal\features\FeaturesManager::isFeatureModule(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::listPackageDirectories(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::getFeaturesModules(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::initPackage(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::assignConfigDependents(): Implicitly marking parameter $item_names as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::assignPackageDependencies(): Implicitly marking parameter $package as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::getPackageObject(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::listExistingConfig(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

Deprecated function: Drupal\features\FeaturesManager::getExportInfo(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in include() (line 582 of C:\Users\mypc\www\my_site\drupal\vendor\composer\ClassLoader.php).

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇳🇱Netherlands koosvdkolk

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

Comments & Activities

Production build 0.71.5 2024