Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Since we don't support PHP5 #3053363: Remove support for PHP 5 in Drupal 8.8 we no longer need to maintain \Drupal\Component\Utility\Crypt::randomBytes()
Proposed resolution
Deprecate the method for removal in Drupal 9.
Remaining tasks
- Create change record - https://www.drupal.org/node/add/changenotice?field_project=3060&field_is...
- Add @deprecated to docblock
- Add @trigger_error() to code
- Remove all usages in core
- Add legacy test to ensure we don't break it for the remainder of Drupal 8 lifetime.
User interface changes
None
API changes
\Drupal\Component\Utility\Crypt::randomBytes()
is deprecated
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#4 | 3054311-4.patch | 4.88 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottThe blocker is in!
Comment #4
alexpottComment #5
alexpottThis whole component is no longer dependent on anything now!
This test CryptRandomFallbackTest is not in the code base. It was removed in #3053363: Remove support for PHP 5 in Drupal 8.8
Comment #7
BerdirLooks good.
Comment #8
catchCommitted 83bee34 and pushed to 8.8.x. Thanks!
Comment #11
Krzysztof DomańskiPublished CR.