Use tagged iterators

Created on 2 April 2024, 3 months ago
Updated 26 June 2024, 5 days 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 days ago
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·
  • Status changed to Needs work 6 days 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 5 days ago
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·
Production build 0.69.0 2024