Drupal 9 readiness:
Need to correct following errors:
------ ----------------------------------------------------
Line src/Access/LikeItCsrfTokenGenerator.php
------ ----------------------------------------------------
92 Call to deprecated method hashEquals() of class
Drupal\Component\Utility\Crypt:
in drupal:8.8.0 and is removed from drupal:9.0.0.
Use PHP's built-in hash_equals() function instead.
------ ----------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Entity/LikeIt.php
------ ----------------------------------------------------------------------
134 Return type of method Drupal\likeit\Entity\LikeIt::getTargetEntity()
has typehint with deprecated class Drupal\Core\Entity\Entity:
in drupal:8.7.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\Entity\EntityBase instead.
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Entity/LikeItInterface.php
------ ----------------------------------------------------------------------
77 Return type of method
Drupal\likeit\Entity\LikeItInterface::getTargetEntity() has typehint
with deprecated class Drupal\Core\Entity\Entity:
in drupal:8.7.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\Entity\EntityBase instead.
------ ----------------------------------------------------------------------
------ ------------------------------------------------------------------
Line src/Event/LikeItEvent.php
------ ------------------------------------------------------------------
11 Class Drupal\likeit\Event\LikeItEvent extends deprecated class
Symfony\Component\EventDispatcher\Event:
since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event"
instead
------ ------------------------------------------------------------------
[ERROR] Found 4 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | reroll_diff-4_5.txt | 943 bytes | shobhit_juyal |
| #5 | likeit-3206919-5.patch | 1.64 KB | shobhit_juyal |
| #4 | likeit-3206919-4.patch | 1.63 KB | dripa |
| #3 | likeit-3206919-3.patch | 1.31 KB | dripa |
| #2 | 3206919-2.patch | 2.12 KB | snehi |
Issue fork likeit-3206919
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:
- 3206919-drupal-9-readiness
changes, plain diff MR !1
Comments
Comment #2
snehi commentedPutting first patch for the same.
Comment #3
dripa commentedThe files in patch #2 are referencing to the site doc root and therefore not applying.
Here's a new patch based on #2 with references to the module doc root.
Comment #4
dripa commentedForgot the version requirement check, uploaded new patch
Comment #5
shobhit_juyal commentedThe last patch wont applied therefore, Uploading new patch as #5.
Comment #8
andrew_tspkhCommitted to 2.0.x