[8.4] Fix implicitly nullable type declarations in composer plugin

Created on 29 April 2024, 8 months ago
Updated 18 May 2024, 7 months ago

Problem/Motivation

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

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

Steps to reproduce

$ docker run --rm -v $(pwd):/var/www/html drupalci/php-8.4-ubuntu-apache:dev php -d error_reporting="E_ALL" -l composer/*/*/*/*

No syntax errors detected in composer/Plugin/Scaffold/Operations/AbstractOperation.php
PHP Deprecated:  Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct(): Implicitly marking parameter $prepend_path as nullable is deprecated, the explicit nullable type must be used instead in composer/Plugin/Scaffold/Operations/AppendOp.php on line 71
PHP Deprecated:  Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct(): Implicitly marking parameter $append_path as nullable is deprecated, the explicit nullable type must be used instead in composer/Plugin/Scaffold/Operations/AppendOp.php on line 71
PHP Deprecated:  Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct(): Implicitly marking parameter $default_path as nullable is deprecated, the explicit nullable type must be used instead in composer/Plugin/Scaffold/Operations/AppendOp.php on line 71
No syntax errors detected in composer/Plugin/Scaffold/Operations/AppendOp.php
No syntax errors detected in composer/Plugin/Scaffold/Operations/OperationData.php
PHP Deprecated:  Drupal\Composer\Plugin\Scaffold\Operations\OperationFactory::hasContent(): Implicitly marking parameter $file as nullable is deprecated, the explicit nullable type must be used instead in composer/Plugin/Scaffold/Operations/OperationFactory.php on line 131
No syntax errors detected in composer/Plugin/Scaffold/Operations/OperationFactory.php
No syntax errors detected in composer/Plugin/Scaffold/Operations/OperationInterface.php
No syntax errors detected in composer/Plugin/Scaffold/Operations/ReplaceOp.php
No syntax errors detected in composer/Plugin/Scaffold/Operations/ScaffoldFileCollection.php
No syntax errors detected in composer/Plugin/Scaffold/Operations/ScaffoldResult.php
No syntax errors detected in composer/Plugin/Scaffold/Operations/SkipOp.php

Proposed resolution

fix it

Remaining tasks

review and commit

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

Component
ComposerΒ  β†’

Last updated about 1 hour ago

No maintainer
Created by

πŸ‡«πŸ‡·France andypost

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024