# Deprecations the Drupal 12 PHPUnit job ignores. .gitlab-ci.yml points core's
# deprecation handler here, and gitlab_templates appends core's own
# core/.deprecation-ignore.txt to this file before the tests run. Patterns are
# PCRE; see https://www.drupal.org/node/3285162.

# Contributed modules, until their releases fix these. Each line says which
# project triggers it.

# ai, ai_agents, ai_context, config_readonly, entity_reference_revisions, key,
# mcp_server, modeler_api, paragraphs, pathauto, token, tool and Tool Belt's
# submodules: native return types that core 12's interfaces will add.
%Method "[^"]+" might add "[^"]+" as a native return type declaration in the future\. Do the same in (?:implementation|child class) "Drupal\\(?:ai|ai_agents|ai_context|config_readonly|entity_reference_revisions|key|mcp_server|modeler_api|paragraphs|pathauto|token|tool|tool_belt_\w+)\\[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%
# ai, ai_agents, ai_context, key and modeler_api: entity types declared with
# annotations.
%Using @EntityType annotation for plugin with ID (?:ai_\w+|key|key_config_override|modeler_api_data_model) is deprecated%
# ai, ai_context, config_readonly and token: hook_requirements() without
# #[LegacyRequirementsHook].
%(?:ai|ai_context|config_readonly|token)_requirements without a #\[LegacyRequirementsHook\] attribute is deprecated%
# pathauto and paragraphs, in hook_install().
%module_set_weight\(\) is deprecated in drupal:11\.5\.0 and is removed from drupal:13\.0\.0%
# tool, in ValueViolationsTrait.
%Method ReflectionProperty::setAccessible\(\) is deprecated since 8\.5%
# token, for its menu and book link caches.
%Calling drupal_static(?:_reset)?\(\) with "token_\w+" as argument is deprecated%
# ai_context, in AiContextScopeIndexService. The message doesn't name the
# caller; Site Agent's own transaction, in ThreadChatMemory, commits explicitly.
%Database commit by letting a Transaction object go out of scope is deprecated%

# Core.

# EntityOwnerTrait has no native return types yet, so the Thread and ToolCall
# entities, which use it, are reported for its methods.
%Method "Drupal\\user\\EntityOwnerInterface::[^"]+" might add "[^"]+" as a native return type declaration in the future\. Do the same in implementation "Drupal\\site_agent\\Entity\\(?:Thread|ToolCall)" now%
