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
drupal-check .
25/25 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------------------------------
Line src/Plugin/LanguageSelectionPageCondition/LanguageSelectionPageConditionBlacklistedPaths.php
------ ----------------------------------------------------------------------------------------------
76 Parameter $alias_manager of method
Drupal\language_selection_page\Plugin\LanguageSelectionPageCondition\
LanguageSelectionPageConditionBlacklistedPaths::__construct() has
typehint with deprecated interface
Drupal\Core\Path\AliasManagerInterface:
in drupal:8.8.0 and is removed from drupal:9.0.0.
Use \Drupal\path_alias\AliasManagerInterface.
131 Call to deprecated method strtolower() of class
Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_strtolower() instead.
------ ----------------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------
Line src/Plugin/LanguageSelectionPageCondition/LanguageSelectionPageConditionPath.php
------ ----------------------------------------------------------------------------------
105 Parameter $alias_manager of method
Drupal\language_selection_page\Plugin\LanguageSelectionPageCondition\
LanguageSelectionPageConditionPath::__construct() has typehint with
deprecated interface Drupal\Core\Path\AliasManagerInterface:
in drupal:8.8.0 and is removed from drupal:9.0.0.
Use \Drupal\path_alias\AliasManagerInterface.
162 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.
------ ----------------------------------------------------------------------------------
[ERROR] Found 4 errors
Remaining tasks
- Remove deprecations listed above.
- Add
core_version_requirement
property to language_selection_page.info.yml
Comment | File | Size | Author |
---|---|---|---|
#11 | 3124380-11.patch | 11.4 KB | JeroenT |
Comments
Comment #2
Shruthi Shetty M CreditAttribution: Shruthi Shetty M at Specbee commentedComment #3
PolHi,
I see you're now using
mb_strtolower
which requires thembstring
extension.I also see that mbstring is a requirement for Drupal 8: https://www.drupal.org/docs/8/system-requirements/php-requirements
I guess that point is perfectly valid.
I also see that you replace
drupal_set_message
with$this->messenger->addMessage
, is that property ($this->messenger
) exists ?Thanks.
Comment #4
JeroenTUpdated IS.
Comment #5
JeroenTComment #6
JeroenTComment #7
JeroenTComment #8
JeroenTWell, at least the tests are running. The test that is currently failing is locally already failing without any changes.
Comment #9
JeroenTComment #10
JeroenTComment #11
JeroenTComment #13
PolThanks fellow mate :)
Comment #14
JeroenTHi Pol,
Thanks for committing this issue. But it seems something went wrong on commit: https://git.drupalcode.org/project/language_selection_page/-/commit/caf1...
\Traversable was updated to Traversable, which now breaks the functionality of the module. Can you revert that change?
Comment #15
PolOops !! Fixed in 8.x-2.6 sorry about that.
Comment #16
JeroenTGreat!