Issue #2239425 by cs_shadow, Mixologic, JacobSanford | penyaskito: Invalid TranslatorInterface type hinting in LanguageRequestSubscriber.
parent
406da3196a
commit
7b8d4375a6
|
@ -27,7 +27,7 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
|
|||
* An array of active translators keyed by priority.
|
||||
*
|
||||
* @var array
|
||||
* Array of \Drupal\Core\Translation\Translator\TranslatorInterface objects
|
||||
* Array of \Drupal\Core\StringTranslation\Translator\TranslatorInterface objects
|
||||
*/
|
||||
protected $translators = array();
|
||||
|
||||
|
@ -77,12 +77,12 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
|
|||
/**
|
||||
* Appends a translation system to the translation chain.
|
||||
*
|
||||
* @param \Drupal\Core\Translation\Translator\TranslatorInterface $translator
|
||||
* @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator
|
||||
* The translation interface to be appended to the translation chain.
|
||||
* @param int $priority
|
||||
* The priority of the logger being added.
|
||||
*
|
||||
* @return \Drupal\Core\Translation\TranslationManager
|
||||
* @return \Drupal\Core\StringTranslation\TranslationManager
|
||||
* The called object.
|
||||
*/
|
||||
public function addTranslator(TranslatorInterface $translator, $priority = 0) {
|
||||
|
|
|
@ -38,7 +38,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
|
|||
/**
|
||||
* The translation service.
|
||||
*
|
||||
* @var \Drupal\Core\Translation\Translator\TranslatorInterface
|
||||
* @var \Drupal\Core\StringTranslation\Translator\TranslatorInterface;
|
||||
*/
|
||||
protected $translation;
|
||||
|
||||
|
@ -56,7 +56,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
|
|||
* The language manager service.
|
||||
* @param \Drupal\language\LanguageNegotiatorInterface
|
||||
* The language negotiator.
|
||||
* @param \Drupal\Core\Translation\Translator\TranslatorInterface $translation
|
||||
* @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation;
|
||||
* The translation service.
|
||||
* @param \Drupal\Core\Session\AccountInterface $current_user
|
||||
* The current active user.
|
||||
|
|
Loading…
Reference in New Issue