Namespace Warning: 'resource' is a Soft Reserved Keyword

Created on 3 October 2024, about 2 months ago

Problem/Motivation

The namespace `Drupal\rest_log_test\Plugin\rest\resource` in the Rest Log module triggers a warning because 'resource' is a soft reserved keyword in PHP 7.0 and later versions.

Steps to reproduce

1. Run PHPCompatibility checks on a codebase using this module.
2. Observe the warning regarding the use of 'resource' in namespaces.

Proposed resolution

Consider renaming the namespace segment from `resource` to avoid potential issues with future PHP versions.

Remaining tasks

User interface changes

API changes

Data model changes

## Additional Information

This warning does not currently cause errors but may lead to compatibility issues in future PHP versions.

🐛 Bug report
Status

Active

Version

2.3

Component

Code

Created by

🇳🇱Netherlands bonrita

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