# Deprecation patterns ignored while testing this module. Core's own
# core/.deprecation-ignore.txt is appended to this file by the phpunit
# (next major) job, so both sets apply; see .gitlab-ci.yml.
#
# Format: https://www.drupal.org/node/3285162
#
# A deprecation naming Drupal\yoyaku belongs fixed, not listed here, and none
# is. Everything below names somebody else's class, reached because a test of
# ours boots that project: there is nothing to fix in this repository, and the
# line goes once the project itself is fixed.
#
# cspell:disable
# Return types core intends to add, in projects the next-major lane installs
# leniently or through a branch of their own: token (Token::getInfo()), domain
# 4.x and orchestra with its submodules (orchestra_ui's form create()). Matched
# by the project the class belongs to rather than one line per method, because
# the list is theirs to shorten, not ours, and spelling out a dozen method
# names here would only go stale as they fix them.
%Method "[^"]+" might add "[^"]+" as a native return type declaration in the future\. Do the same in (implementation|child class) "Drupal\\(token|domain|orchestra[a-z_]*)\\[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message\.%
#
# token keeps its menu and book link caches in drupal_static(), which core
# 11.5 deprecated for a memory cache. Reached by every test that installs
# token, which the ticket and order notification tests do. Matched by token's
# own static names, so a drupal_static() in OUR code keeps failing the lane.
%Calling drupal_static(_reset)?\(\) with "token_[a-z_]+" as argument is deprecated%
#
# Core's own language module, at
# core/modules/language/src/EventSubscriber/ConfigSubscriber.php:104. Reached
# by any test that installs the language module, which the translation screens
# do. Deliberately narrow: this is the one PHP-level deprecation ignored here,
# and a null array offset in OUR code has to keep failing the lane.
%Using null as an array offset is deprecated, use an empty string instead%
#
# easy_email's EasyEmailHtmlRouteProvider asks core's getEntityTypeIdKeyType(),
# deprecated in 11.4, whenever the router is rebuilt. Reached by the booker
# email test that installs yoyaku_order_easy_email on a French site, which is
# the only way to prove its translations survive an install. The message names
# core's method, not the caller, so it cannot be narrowed to easy_email: yoyaku
# calls the method nowhere, which `grep -rn getEntityTypeIdKeyType` confirms,
# and the line goes once easy_email asks EntityTypeInterface::hasIntegerId().
%Drupal\\Core\\Entity\\Routing\\DefaultHtmlRouteProvider::getEntityTypeIdKeyType\(\) is deprecated%
#
# Core 11.5 asks every module to move the hooks in its .module file into
# classes, and raises this once per module and test class. domain and token
# still have such code, and the tests that install them pass while the
# next-major job fails on the deprecation alone. The pattern names only these
# two projects, so code left in a .module file of yoyaku's own still fails the
# lane; drop a project once it converts.
%Code in (domain|token)\.module is deprecated in drupal:11.5.0 and must be converted before drupal:13.0.0.%
# cspell:enable
