web/modules/contrib/encryption/src/EncryptionTrait.php (in context of class Drupal\encryption\EncryptionService) 45 Call to deprecated method randomBytes() of class Drupal\Component\Utility\Crypt. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use PHP's built-in random_bytes() function instead.

web/modules/contrib/encryption/src/EncryptionTrait.php (in context of class Drupal\encryption\EncryptionService) 84 Call to deprecated method hashEquals() of class Drupal\Component\Utility\Crypt. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use PHP's built-in hash_equals() function instead.

Issue fork encryption-3132437

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mo_farhaz created an issue. See original summary.

mo_farhaz’s picture

Assigned: mo_farhaz » Unassigned
Status: Active » Needs review
StatusFileSize
new1.19 KB

please review.

gg4’s picture

gg4’s picture

Status: Needs work » Needs review
StatusFileSize
new1.53 KB
gg4’s picture

StatusFileSize
new1.86 KB

Adding requirement and version matching version constraint for Drupal Core to composer.json as well.

Jaesin made their first commit to this issue’s fork.

Jaesin’s picture

StatusFileSize
new0 bytes
new1.86 KB

I don't think the module should require 8.8. It has been working as is since early in 8.0 and the functions we are changing to is from PHP 7.0 so just adding php >=7 and ext-openssl should do the trick.

Jaesin’s picture

StatusFileSize
new668 bytes

Fixes the empty interdiff.

Jaesin’s picture

StatusFileSize
new308 bytes
new1.56 KB

I understand that we need to keep `core: 8.x` in order to keep compatibility with Drupal 8. If anyone knows this to be a myth, let me know.

gg4’s picture

IIUC and as detailed in #3070687, if the module needs to support for Drupal < 8.8, then `core: 8.x` is still required.

I think the most compelling reason to drop support for older version of Drupal 8 is that core versions < 8.9 no longer receive security support and maintaining compatibility could be considered unnecessary and increase support overhead. Although, overhead would probably be minimal in this case of this module and the decision to drop support Drupal < 8.9 could always be deferred. Personally, I favor addressing this now as part of this issue (as it also simplifies the module's direct requirements a bit), but no strong opinions either way. #10 LGTM either way.

gg4’s picture

Status: Needs review » Reviewed & tested by the community

Additionally, testbot also does not supported versions of Drupal < 8.9 so we lose that safety net for older version.

  • Jaesin committed eac7f6f on 8.x-1.x
    Issue #3132437 by Jaesin, bonus, mo_farhaz: Deprecated code report
    
Jaesin’s picture

Status: Reviewed & tested by the community » Fixed

I understand wanting to maintain the scope of support. Maybe we can get a topic started about that so others can weigh in on the subject.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.