Apply rector fix to .theme file

Created on 18 February 2025, about 2 months ago

Problem/Motivation

Rector reports an issue in the .theme file of the theme.

Steps to reproduce

Set up a site with Radix as theme (or a subtheme of Radix) and Rector (can supply details on how to add Rector if necessary). Observe that rector proposes a changes to the .theme file in Radix and/or its subtheme.

Proposed resolution

Apply the rector fix

// Include all files from the includes directory.
- $includes_path = dirname(__FILE__) . '/includes/*.theme';
+ $includes_path = __DIR__ . '/includes/*.theme';
foreach (glob($includes_path) as $file) {
-  require_once dirname(__FILE__) . '/includes/' . basename($file);
+  require_once __DIR__ . '/includes/' . basename($file);

Remaining tasks

Apply the fix

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇳🇴Norway jonsimonsen

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