From 1583b14a2a58596e94a7a2f21bd6e6cafb7a683b Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 2 Sep 2026 11:29:55 +0200 Subject: [PATCH] Add back RectorConfig::tag() as a no-op BC layer The DI container switch to entropy removed the tag() method inherited from illuminate/container. Older configs and sets still call it, causing "Call to undefined method Rector\Config\RectorConfig::tag()". Restore it as a deprecated no-op, since services are now discovered by contract. Claude-Session: https://claude.ai/code/session_01SPWpEgoaHa33ypRUWccHHr --- src/Config/RectorConfig.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Config/RectorConfig.php b/src/Config/RectorConfig.php index 384869e3faa..885995da96f 100644 --- a/src/Config/RectorConfig.php +++ b/src/Config/RectorConfig.php @@ -607,6 +607,18 @@ public function editorUrl(string $editorUrl): void SimpleParameterProvider::setParameter(Option::EDITOR_URL, $editorUrl); } + /** + * Backward-compatibility no-op. The former illuminate/container exposed tag()/tagged(); + * the entropy container discovers services by contract, so tagging is not needed. + * + * @deprecated Tagging is no longer used, services are discovered by contract. The call is ignored. + * @param string|string[] $abstracts + * @param string|string[] $tags + */ + public function tag(array|string $abstracts, array|string $tags): void + { + } + /** * @internal Used only for bridge * @return array, mixed>