Multiple errors while creating a package

Created on 6 November 2023, about 1 year ago
Updated 5 March 2024, 10 months ago

Problem/Motivation

Multiple errors while creating a package in the module.

Warning: Trying to access array offset on value of type null in Drupal\micon\Entity\Micon->getPrefix() (line 146 of modules/contrib/micon/src/Entity/Micon.php).
Drupal\micon\Entity\Micon->getPrefix() (Line: 339)

Deprecated function: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in Drupal\micon\Entity\Micon->archiveExtract() (line 339 of modules/contrib/micon/src/Entity/Micon.php).

Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\micon\Entity\Micon->getName() (line 138 of modules/contrib/micon/src/Entity/Micon.php).

Steps to reproduce

Install module on D10 with version 2.x-dev
Create a package
Sample package can be downloaded from HERE

Proposed resolution

Might need to validate the variables and parameters before executing functions over them.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India ayush.pandey

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