I've created a MR for the test: https://git.drupalcode.org/project/tome_add_paths/-/merge_requests/2, so moving this issue to Needs review status.
hoffismo → created an issue.
Creating a patch for 10.2.x
Thanks @larowlan. I've attached a stack trace. Yes that's correct, we do have a hook_tokens() in a custom module declaring the $type as string. I can confirm removing that does work to align it with core, since it's not strict typed as yet.
Adding initial patch but requires tests.
hoffismo → created an issue.
hoffismo → created an issue.
This patch removes the @todo code.
hoffismo → created an issue.