- Status changed to Needs work
about 2 years ago 11:33pm 6 February 2023 - 🇺🇸United States smustgrave
Believe the change record needs to be in the trigger_error no?
- Status changed to Needs review
about 2 years ago 11:41pm 6 February 2023 - 🇦🇺Australia darvanen Sydney, Australia
Good point, the example I copied from didn't have one but you're right, that should be there.
- Status changed to RTBC
about 2 years ago 11:44pm 6 February 2023 - Status changed to Needs review
about 2 years ago 2:57am 16 February 2023 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
We should be adding test coverage of this deprecation because it contains some logic. I looked for existing test coverage of Token::scan() and I found core/modules/system/tests/src/Functional/System/TokenScanTest.php which is a pointless functional test - it can be a unit test - and I found a unit test \Drupal\Tests\Core\Utility\TokenTest - which sets up a token service for us to use in testing - so I moved everything there.
- Status changed to RTBC
about 2 years ago 3:22am 16 February 2023 - Status changed to Fixed
about 2 years ago 9:01am 16 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.