# Deprecation patterns ignored while testing this module. Core's own
# core/.deprecation-ignore.txt is appended to this file by the phpunit
# job, so both sets apply; see .gitlab-ci.yml.
#
# Format: https://www.drupal.org/node/3285162
#
# Everything here belongs to a dependency or to core, never to
# audit_trail. A deprecation naming Drupal\audit_trail is a real
# finding and belongs fixed, not ignored: the "Transaction object go
# out of scope" one this lane surfaced was fixed by committing
# explicitly, not by adding a pattern here.
#
# cspell:disable
# Forward-compatibility warnings raised by Symfony's DebugClassLoader
# against our dependencies. Core carries the same pattern for its own
# modules, with the same reasoning: the downstream project has to add
# the return types before the ignore can go. key is a runtime
# dependency; paragraphs and entity_reference_revisions are dev
# dependencies of audit_trail_entity_paragraphs.
%Method "Drupal\\[^"]+::[^"]+\(\)" might add "[^"]+" as a native return type declaration in the future\. Do the same in (?:implementation|child class) "Drupal\\(key|paragraphs|entity_reference_revisions)\\[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%

# drupal/key has not converted its plugins to attributes.
# https://www.drupal.org/project/key/issues
%Not supporting attribute discovery in Drupal\\key\\Plugin\\[^ ]+ is deprecated%
%Using @EntityType annotation for plugin with ID (key|key_config_override) is deprecated%

# drupal/key caches key values through drupal_static() in
# Key::getKeyValue(), which core 11.5 deprecates. The next-major lane
# runs core with that deprecation, so every test that reads a secret
# raises it. Drop this once key caches through \Drupal::cache('memory').
# https://www.drupal.org/project/key/issues
%Calling drupal_static\(\) with "getKeyValue" as argument is deprecated%

# Next-major only, and caused by our own patch: the key merge request
# this lane applies (#3483550, key MR !34) gives three of key's four
# KeyProvider plugins an attribute, so the patched KeyPluginManager
# starts passing an attribute class and core then reports the one
# plugin the merge request missed, StateKeyProvider. Drop this
# pattern once that merge request covers `state`, or once key ships
# attribute discovery in a release and the patch goes.
#
# The lane applies #3483550 and #3599449, and nothing else: they
# are listed in .gitlab-ci/next-major-patches.json, which is the
# place to check what a pattern here is waiting on. A drop
# condition naming a merge request the lane does not apply can
# never come true.
%Using @KeyProvider annotation for plugin with ID [a-z_]+ is deprecated%

# Twig's own forward-compatibility notice about a core class.
%(Since twig/twig 3\.28: )?The "Drupal\\Core\\Template\\TwigSandboxPolicy::checkSecurity\(\)" method will (take a 4th|require a new)%
# cspell:enable
