substr(): Passing null to parameter #1 ($string) of type string is deprecated - when initiating the 'transliteration' service on PHP 8.1

Created on 1 August 2023, over 1 year ago

Problem/Motivation

The code:
TestHelpers::initServiceFromYaml('core/core.services.yml', 'transliteration');
Produces a deprecation error on PHP 8.1 (works well on PHP 8.0):
PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in modules/contrib/test_helpers/src/TestHelpers.php on line 405

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Comments & Activities

Production build 0.71.5 2024