Skip to content

Commit

Permalink
Issue #3118186 by swatichouhan012: Incorrect link for deprecated rand…
Browse files Browse the repository at this point in the history
…omBytes() method description in utility component
  • Loading branch information
alexpott committed Mar 6, 2020
1 parent c44a6a9 commit d250735
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Drupal/Component/Utility/Crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class Crypt {
* @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.
* Use PHP's built-in random_bytes() function instead.
*
* @see https://www.drupal.org/node/3054488
* @see https://www.drupal.org/node/3057191
*/
public static function randomBytes($count) {
@trigger_error(__CLASS__ . '::randomBytes() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use PHP\'s built-in random_bytes() function instead. See https://www.drupal.org/node/3054488', E_USER_DEPRECATED);
@trigger_error(__CLASS__ . '::randomBytes() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use PHP\'s built-in random_bytes() function instead. See https://www.drupal.org/node/3057191', E_USER_DEPRECATED);
return random_bytes($count);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Drupal/Tests/Component/Utility/CryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CryptTest extends TestCase {
* Tests random byte generation.
*
* @covers ::randomBytes
* @expectedDeprecation Drupal\Component\Utility\Crypt::randomBytes() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use PHP's built-in random_bytes() function instead. See https://www.drupal.org/node/3054488
* @expectedDeprecation Drupal\Component\Utility\Crypt::randomBytes() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use PHP's built-in random_bytes() function instead. See https://www.drupal.org/node/3057191
* @group legacy
*/
public function testRandomBytes() {
Expand Down

0 comments on commit d250735

Please sign in to comment.