PHP 7 Group Import Declarations

Created on 4 March 2020, over 4 years ago
Updated 10 May 2024, 4 months ago

PHP 7 introduces group import declarations, however Drupal Coder reports an error when using them.

PHP 5:

use What\The\Heck;
use What\The\Hell;

PHP 7:

Use What\The\{Heck, Hell};

Coder reports this as an error, that multiple declarations are to be made on separate lines. This is a new feature of PHP 7 though, allowing for more concise code. I think we should support this myself. And the discussion is open.

Feature request
Status

Closed: won't fix

Component

Coding Standards

Created by

🇨🇦Canada Jaypan

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.

Production build 0.71.5 2024