[8.4] Fix implicitly nullable type declarations in core/lib/Drupal/Component

Created on 29 April 2024, 19 days ago
Updated 18 May 2024, about 3 hours ago

Problem/Motivation

Part of πŸ“Œ [PHP 8.4] Fix implicitly nullable type declarations Active

Start with https://git.drupalcode.org/project/drupal/-/merge_requests/7783/diffs?co...

Steps to reproduce

root@465c9a731290:/var/www/html# php -d error_reporting="E_ALL" -l core/lib/Drupal/Component/*/*/*/*       
No syntax errors detected in core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php
No syntax errors detected in core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotationBridgeDecorator.php
root@465c9a731290:/var/www/html# php -d error_reporting="E_ALL" -l core/lib/Drupal/Component/*/*/*   
No syntax errors detected in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
No syntax errors detected in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php
No syntax errors detected in core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php
No syntax errors detected in core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php
No syntax errors detected in core/lib/Drupal/Component/Annotation/Plugin/Discovery
No syntax errors detected in core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php
PHP Deprecated:  Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::getReferenceCall(): Implicitly marking parameter $reference as nullable is deprecated, the explicit nullable type must be used instead in core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php on line 467
....
PHP Deprecated:  Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php on line 31

No syntax errors detected in core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php
No syntax errors detected in core/lib/Drupal/Component/Plugin/Exception/MapperExceptionInterface.php
No syntax errors detected in core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php
No syntax errors detected in core/lib/Drupal/Component/Plugin/Exception/PluginException.php

PHP Deprecated:  Drupal\Component\Plugin\Exception\PluginNotFoundException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php on line 24

No syntax errors detected in core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php

Proposed resolution

fix errors

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

Component
BaseΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡«πŸ‡·France andypost

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

Merge Requests

Comments & Activities

Production build 0.67.2 2024