magento / magento/composer-root-update-plugin

PHP 8.1 support

Open
#36 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
59
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Deprecation Notice: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/xxx/public_html/vendor/magento/composer-root-update-plugin/Utils/PackageUtils.php:128

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at vendor/magento/composer-root-update-plugin/Utils/PackageUtils.php:128 and inspect the preg_match() call that receives a null subject. Reproduce the deprecation under PHP 8.1, then run the relevant project tests if available; done means the warning no longer occurs while existing package-update behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.