Add test coverage for AttributeClassDiscovery for unexpected class_exists exceptions

Created on 23 April 2025, about 22 hours ago

Problem/Motivation

In 📌 Add a fallback classloader that can handle missing traits Active , a fallback class loader was added to handle exceptions/fatal errors during plugin discovery by class attributes. One outstanding task is to add test coverage for the exception handling here, in the condition where an exception is thrown for something other than a missing dependency:

             catch (\Error $e) {
                if (!$autoloader->hasMissingClass()) {
                  $autoloader->reset();
                  spl_autoload_unregister([$autoloader, 'loadClass']);
                  throw $e;
                }
                $autoloader->reset();
                continue;
              }

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

plugin system

Created by

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

Comments & Activities

Production build 0.71.5 2024