# Deprecations droost cannot fix, and why each one is here.
#
# This file is MERGED ON TOP of core's own core/.deprecation-ignore.txt by the
# phpunit job (see .gitlab-ci.yml); it never replaces it. Droost runs its
# suite with core's default deprecation semantics rather than the template's
# SYMFONY_DEPRECATIONS_HELPER: 'disabled', because a silenced deprecation is
# exactly the class of defect that gate exists to find. The cost of that
# choice is this file: droost's require-dev pulls in drupal/ai, canvas,
# ui_patterns, config_split, devel, drupal/tool and drush, and a deprecation
# in any of them failed droost's pipeline — reporting another project's debt
# as droost's, with no fix available here.
#
# EVERY PATTERN NAMES A THIRD PARTY. Nothing in Drupal\droost* belongs in this
# file: droost's own deprecations must fail, which is the whole point of
# keeping the gate on. The module-name patterns are anchored with ^ for that
# reason — an unanchored `ai_requirements` would also swallow a future
# `droost_ai_requirements`, silencing the thing this gate is for.
#
# Each entry is a candidate upstream issue, not a permanent exemption: delete
# it when the dependency ships its fix, and the gate will say if it has not.

# --- Procedural hook_requirements(), deprecated in 11.3 -----------------------
# drupal/ai, drupal/canvas and drupal/devel. Droost converted its own two
# (Drupal\droost_workflow\Hook\WorkflowRequirements and droost_canvas's
# Install\Requirements class) rather than listing them here.
%^ai_requirements without a #\[LegacyRequirementsHook\] attribute is deprecated in drupal:11\.3\.0%
%^canvas_requirements without a #\[LegacyRequirementsHook\] attribute is deprecated in drupal:11\.3\.0%
%^devel_requirements without a #\[LegacyRequirementsHook\] attribute is deprecated in drupal:11\.3\.0%

# --- @EntityType annotations, removed in 13.0 --------------------------------
# Entity types belonging to drupal/key, drupal/ai and drupal/config_split.
# Droost sees these because RuntimeHarvester asks EVERY plugin manager for its
# definitions when it builds the brain, which loads each provider's classes:
# the harvest surfaces its dependencies' debt, it does not create it.
%^Using @EntityType annotation for plugin with ID (?:key|key_config_override|config_split|ai_file|ai_prompt|ai_prompt_type|ai_guardrail|ai_guardrail_set|ai_mock_provider_result) is deprecated%

# --- Plugin managers without attribute discovery, removed in 12.0 ------------
# drupal/key and drupal/devel (devel_generate), again via the harvest.
%^Not supporting attribute discovery in Drupal\\(?:key\\Plugin\\KeyPluginManager|devel_generate\\DevelGeneratePluginManager) is deprecated%

# --- Core's archiver plugins, deprecated in 11.3 with no replacement ---------
# Core deprecated Zip, Tar and ArchiverInterface as whole FILES: the notice
# fires on include, so anything that loads the plugin class triggers it. The
# brain harvest does, by asking plugin.manager.archiver for its definitions.
# Droost neither uses an archiver nor can stop core's discovery loading them.
%^\\Drupal\\Core\\Archiver\\(?:Zip|Tar|ArchiverInterface) is deprecated in drupal:11\.3\.0%

# --- Forward-compatibility warnings from DebugClassLoader ---------------------
# Signatures a dependency has to widen, in its own code. Droost widened its
# own (ExampleUnpublishAction and droost_ai's DroostTool both take Drupal 12's
# `?object` subject now); these are canvas's, drupal/ai's, devel's,
# ui_patterns's, config_split's and drush's to widen.
%The "Drupal\\canvas\\Block\\BlockManagerDecorator::get(?:Sorted|Grouped)Definitions\(\)" method will require a new "string \$label_key" argument%
%The "Drupal\\ai\\Plugin\\AiFunctionCall\\[A-Za-z_]+::execute\(\)" method will require a new "object\|null \$object" argument%
%Method "Twig\\Extension\\ExtensionInterface::get(?:Functions|Filters)\(\)" might add "array" as a native return type declaration in the future\. Do the same in implementation "Drupal\\(?:devel\\Twig\\Extension\\Debug|ui_patterns\\Template\\TwigExtension)"%
%Method "Symfony\\Component\\EventDispatcher\\EventSubscriberInterface::getSubscribedEvents\(\)" might add "array" as a native return type declaration in the future\. Do the same in implementation "Drupal\\config_split\\EventSubscriber\\SplitImportExportSubscriber"%
%Method "Consolidation\\AnnotatedCommand\\State\\SavableState::currentState\(\)" might add "State" as a native return type declaration in the future%

# --- symfony/validator 7.4 constraint options --------------------------------
# Constraint classes in drupal/canvas, drupal/ui_patterns (a display's
# binding, validated when droost_display_check's test saves one) and core's
# own config validation.
%^Since symfony/validator 7\.4: Support for evaluating options in the base Constraint class is deprecated\. Initialize properties in the constructor of Drupal\\(?:canvas\\Plugin\\Validation\\Constraint|ui_patterns\\Plugin\\Validation\\Constraint|Core\\Config\\Plugin\\Validation\\Constraint)\\%

# --- Constraint options as a list, deprecated in 11.4 ------------------------
# drupal/canvas's config schema (canvas.schema.yml) configures core's Choice
# and its own KeyForEverySdcProp with a plain list; validating a Component
# entity (droost_canvas_component_toggle) reads that schema. The messages
# name the plugin, not its user, so these are pinned to the two plugins
# Canvas's schema uses; droost's own config schema configures neither. On the
# previous core minor core's own AllowedValuesConstraint (Choice's subclass)
# says the same, when a UI Patterns display is saved.
%^Passing any non-associative-array options to configure constraint plugin "(?:Choice|KeyForEverySdcProp)" is deprecated in drupal:11\.4\.0%
%^Since symfony/validator 7\.4: Support for passing the choices as the first argument to (?:Symfony\\Component\\Validator\\Constraints\\Choice|Drupal\\Core\\Validation\\Plugin\\Validation\\Constraint\\AllowedValuesConstraint) is deprecated\.%
