String is a reserved keyword in PHP 7

Created on 22 October 2025, 10 days ago

Problem/Motivation

PHP_CodeSniffer finds:

FILE: src/Plugin/GraphQL/DataProducer/String/Uppercase.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
3 | ERROR | 'string' is a reserved keyword as of PHP version 7.0 and should
|       | not be used to name a class, interface or trait or as part of a
|       | namespace (T_NAMESPACE)
--------------------------------------------------------------------------------

Steps to reproduce

Proposed resolution

Move this Uppercase class to another namespace instead of String.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom Rob230

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024