Refactor trigger_error in TypedConfigManager

Created on 2 April 2024, 8 months ago
Updated 28 April 2024, 7 months ago

Problem/Motivation

Spin off from 📌 [meta] Replace calls to ::expectError*() and ::expectWarning*() Active .

PHPUnit 9 deprecated ::expectError*() methods. They're removed from PHPUnit 10.

TypedConfigManager::get is triggering an E_USER_ERROR in some circumstances, and a test exists expecting that.

That test needs to remove the expectation, and the runtime code need to find a different strategy to raise the error if we want to keep it testable.

Proposed resolution

Replace trigger_error() with logging the error to the logger service, then throwing an \InvalidArgumentException.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.3

Component
Configuration 

Last updated 7 days ago

Created by

🇮🇹Italy mondrake 🇮🇹

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