# 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
#
# A deprecation naming Drupal\orchestra is normally a real finding and
# belongs fixed, not ignored. The one family below is the exception, and
# only because core treats its own modules the same way.
#
# cspell:disable
# Cross-module return type deprecations. Symfony's DebugClassLoader asks
# every implementation of an untyped interface method to declare the
# return type the interface will take one day. The interfaces are core's
# and core has not typed them yet: calculateDependencies(),
# onDependencyRemoval(), label(), create() and render() raise most of
# these. Core carries the very same pattern for its own modules, with
# the note that downstream implementations should add return types
# first, so this is a deferred cleanup rather than a Drupal 12 problem.
# Orchestra's own share is 966 messages over 74 classes.
%Method "[^"]+::[^"]+\(\)" might add "[^"]+" as a native return type declaration in the future. Do the same in (?:implementation|child class) "Drupal\\orchestra[a-z_]*\\[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%

# The same family, raised against development dependencies rather than
# orchestra. Nothing here is orchestra's to fix; drop a project once it
# declares the return types itself.
%Method "[^"]+::[^"]+\(\)" might add "[^"]+" as a native return type declaration in the future. Do the same in (?:implementation|child class) "Drupal\\(consumers|domain|domain_config|eca|group|key|modeler_api|simple_oauth|token|webform)[a-z_]*\\[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%

# Contributed dependencies that still declare their plugins with
# annotations rather than attributes. All of these name a dependency's
# plugin id, never one of orchestra's; drop a line once that project
# converts.
%Using @(EntityType|FieldType|Constraint) annotation for plugin with ID (modeler_api_data_model|key|key_config_override|consumer|oauth2_token|oauth2_token_type|oauth2_scope|oauth2_scope_reference|Oauth2ScopeReference|Oauth2RedirectUri|Oauth2PrivilegedConsumerField) is deprecated and is removed from drupal:13.0.0.%
%Not supporting attribute discovery in Drupal\\key\\Plugin\\KeyPluginManager is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0.%

# key's Key::getKeyValue() keeps the values it read in drupal_static(), which
# Drupal 11.5 deprecates, so every test that reads a key fails the next-major
# lane. The pattern names key's function, so a drupal_static() call of
# orchestra's own still fails it. Drop the line once key releases #3624641.
%Calling drupal_static\(\) with "getKeyValue" as argument is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0.%

# webform's own Drupal 12 readiness. It declares its plugins with
# annotations rather than attributes, and its requirements hook without the
# attribute Drupal 11.3 asks for. Its Functional classes each raise around
# 220 of these, and core's run-tests.sh adds --fail-on-deprecation, so
# without these patterns the whole next-major job fails on a fully green
# test table. None of it is orchestra's to fix; drop a line once webform
# converts.
%Using @(Action|EntityType|FieldType|EntityReferenceSelection) annotation for plugin with ID (default:)?webform[a-z_]* is deprecated and is removed from drupal:13.0.0.%
%Not supporting attribute discovery in Drupal\\webform\\Plugin\\Webform[A-Za-z]+Manager is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0.%
%webform[a-z_]*_requirements without a #\[LegacyRequirementsHook\] attribute is deprecated in drupal:11.3.0 and removed in drupal:13.0.0.%

# Raised only once the next-major lane patches webform to offer attribute
# discovery (#3537358): with discovery on, core deprecates every plugin still
# declared by annotation.
#
# It names ORCHESTRA'S OWN plugins, which normally means fix rather
# than ignore. They cannot be fixed yet: Drupal\webform\Attribute\WebformElement
# and \WebformHandler do not exist in released webform 6.3.0, only under the
# patch, so converting would leave the plugins undiscoverable on the current
# lane. Convert them and delete that pattern the day webform releases the
# attribute classes.
%Using @(WebformElement|WebformHandler) annotation for plugin with ID (orchestra_interaction|orchestra_interaction_resumed_step_recorder|orchestra_remote_workflow) is deprecated and is removed from drupal:13.0.0.%

# webform's element help template still uses Twig's spaceless filter.
%Since twig/twig 3.12: Twig Filter "spaceless" is deprecated in [^ ]*/webform/templates/[a-z-]+\.html\.twig at line [0-9]+.%

# webform hands the current user to the renderer as a cache dependency, and
# AccountProxy does not implement CacheableDependencyInterface. This one WILL
# THROW in Drupal 13, so it is a webform bug to be fixed upstream rather than
# carried forever; the pattern names no project, so remove it as soon as
# webform is fixed and confirm nothing of orchestra's own hides behind it.
# @see WebformSubmissionViewController::view()
%Calling Drupal\\Core\\Render\\Renderer::addCacheableDependency\(\) with an object that doesn't implement Drupal\\Core\\Cache\\CacheableDependencyInterface is deprecated in drupal:11.3.0 and will throw an error in drupal:13.0.0.%

# bpmn_io builds its select options with form_select_options(), which core
# deprecated in 11.6.0 for FormSelectOptions::process(). Orchestra itself
# never calls it; only the orchestra_bpmn_io tests reach it. The message
# names no project, so remove the pattern once bpmn_io is fixed, and grep
# orchestra for form_select_options first.
# @see \Drupal\bpmn_io\Service\PrepareComponents
%form_select_options\(\) is deprecated in drupal:11.6.0 and is removed from drupal:13.0.0.%

# Core 11.5 asks every module to move the hooks in its .module file into
# classes. The dependencies below still have such code, and core raises
# this once per module and test class, so the next-major job fails on a
# fully green test table. The pattern names only these modules, so code
# left in a .module file of orchestra's own still fails the lane; drop a
# module once it converts.
%Code in (consumers|domain|key|simple_oauth|token|webform)\.module is deprecated in drupal:11.5.0 and must be converted before drupal:13.0.0.%

# Guzzle 8.5 deprecated Utils::defaultUserAgent(), and core's Http\ClientFactory
# still calls it to build the User-Agent of every client it makes, including the
# one a functional test drives the site with. orchestra calls it nowhere, which
# `grep -rn defaultUserAgent` confirms. Drop this once core builds the string
# itself.
%Since guzzlehttp/guzzle 8\.5: GuzzleHttp\\Utils::defaultUserAgent\(\) is deprecated%
# cspell:enable
