Problem/Motivation

phpstan is saying,

Avoid calling Symfony\Component\Yaml\Yaml::parse() directly. Use Drupal\Component\Serialization\Yaml::decode() instead, which handles exceptions consistently and applies the correct parse flags.

Steps to reproduce

Scan the module with phpstan or Upgrade Status under Drupal 11.

Proposed resolution

Use Yaml::decode() instead.

Remaining tasks

make an MR.

Issue fork name-3619360

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

benstallings created an issue. See original summary.

benstallings’s picture

Status: Active » Closed (outdated)

Never mind, this was already done in commit 2ad0416.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.