Remove deprecated code according to drupal-check output:

 12/12 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
  Line   src/EventSubscriber/DomainPathRedirectRequestSubscriber.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
  166    Parameter $alias_manager of method Drupal\domain_path_redirect\EventSubscriber\DomainPathRedirectRequestSubscriber::__construct() has typehint with
         deprecated class Drupal\Core\Path\AliasManager:
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use
         \Drupal\path_alias\AliasManager instead.
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------

 ------ ----------------------------------------------------------------------
  Line   src/Form/DomainPathRedirectDeleteForm.php
 ------ ----------------------------------------------------------------------
  40     Call to deprecated function drupal_set_message():
         in drupal:8.5.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
 ------ ----------------------------------------------------------------------

 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------
  Line   src/Form/DomainPathRedirectForm.php
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------
  63     Parameter $entity_manager of method Drupal\domain_path_redirect\Form\DomainPathRedirectForm::__construct() has typehint with deprecated interface
         Drupal\Core\Entity\EntityManagerInterface:
         in drupal:8.0.0 and is removed from drupal:9.0.0.
  117    Call to deprecated function drupal_set_message():
         in drupal:8.5.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
  217    Call to deprecated method url() of class Drupal\Core\Entity\EntityInterface:
         in drupal:8.0.0 and is removed from drupal:9.0.0.
         Please use toUrl() instead.
  250    Call to deprecated function drupal_set_message():
         in drupal:8.5.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   tests/src/Unit/DomainPathRedirectRequestSubscriberTest.php
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------
  145    Return type of method Drupal\Tests\domain_path_redirect\Unit\DomainPathRedirectRequestSubscriberTest::getDomainStub() has typehint with deprecated
         interface PHPUnit_Framework_MockObject_MockObject:
         Use PHPUnit\Framework\MockObject\MockObject instead
  171    Return type of method Drupal\Tests\domain_path_redirect\Unit\DomainPathRedirectRequestSubscriberTest::getRedirectStub() has typehint with deprecated
         interface PHPUnit_Framework_MockObject_MockObject:
         Use PHPUnit\Framework\MockObject\MockObject instead
  282    Return type of method Drupal\Tests\domain_path_redirect\Unit\DomainPathRedirectRequestSubscriberTest::getDomainNegotiatorStub() has typehint with
         deprecated interface PHPUnit_Framework_MockObject_MockObject:
         Use PHPUnit\Framework\MockObject\MockObject instead
  305    Return type of method Drupal\Tests\domain_path_redirect\Unit\DomainPathRedirectRequestSubscriberTest::getDomainPathRedirectRepositoryStub() has typehint
         with deprecated interface PHPUnit_Framework_MockObject_MockObject:
         Use PHPUnit\Framework\MockObject\MockObject instead
  363    Return type of method Drupal\Tests\domain_path_redirect\Unit\DomainPathRedirectRequestSubscriberTest::getLanguageManagerStub() has typehint with
         deprecated interface PHPUnit_Framework_MockObject_MockObject:
         Use PHPUnit\Framework\MockObject\MockObject instead
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------


 [ERROR] Found 11 errors

Comments

Natallia Kazarynava created an issue. See original summary.

Natallia Kazarynava’s picture

Status: Active » Closed (duplicate)