Refactor trigger_error in TypedConfigManager

Created on 2 April 2024, 4 months ago
Updated 28 April 2024, 3 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 1 day 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.69.0 2024