Use tagged iterators

Created on 2 April 2024, 9 months ago
Updated 10 July 2024, 6 months ago

Problem/Motivation

When Drupal 10.2 will no more be supported, test if https://www.drupal.org/node/3436859 can reduce codebase and/or improve performance and/or just modernize the codebase.

📌 Task
Status

Fixed

Version

1.1

Component

Code

Created by

🇫🇷France Grimreaper France 🇫🇷

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

Merge Requests

Comments & Activities

  • Issue created by @Grimreaper
  • 🇫🇷France Grimreaper France 🇫🇷

    Let's do that on 1.1.x

  • Assigned to Grimreaper
  • Status changed to Active 6 months ago
  • 🇫🇷France Grimreaper France 🇫🇷
  • 🇫🇷France Grimreaper France 🇫🇷
  • Status changed to Needs work 6 months ago
  • 🇫🇷France Grimreaper France 🇫🇷

    Hum, when I execute PHPCS locally, I obtain:

    FILE: project/app/modules/custom/entity_access_password/src/Plugin/Field/FieldType/EntityAccessPasswordItem.php
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     1 | ERROR | An error occurred during processing; checking has been aborted. The error message was: Tags support is not enabled. Enable the "Yaml::PARSE_CUSTOM_TAGS" flag to use "!tagged_iterator" at line 13
       |       | (near "!tagged_iterator entity_access_password_password_validator").
       |       | The error originated in the DrupalPractice.Objects.GlobalDrupal sniff on line 102.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    

    While it is ok on Drupal.org.

    PHPCS config: https://gitlab.com/florenttorregrosa-drupal/docker-drupal-project/-/blob...

    I tried to remove the yml extension from the list of scanned extension, I obtain the same result.

  • Issue was unassigned.
  • Status changed to Fixed 6 months ago
  • 🇫🇷France Grimreaper France 🇫🇷
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024