Loading core/.phpstan-baseline.php +0 −2328 File changed.Preview size limit exceeded, changes collapsed. Show changes core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php +6 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ protected function t($string, array $args = [], array $options = []) { * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ protected function formatPlural($count, $singular, $plural, array $args = [], array $options = []) { return new PluralTranslatableMarkup($count, $singular, $plural, $args, $options, $this->getStringTranslation()); Loading @@ -84,6 +87,9 @@ protected function formatPlural($count, $singular, $plural, array $args = [], ar * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ protected function getNumberOfPlurals($langcode = NULL) { if (\Drupal::hasService('locale.plural.formula')) { Loading Loading
core/.phpstan-baseline.php +0 −2328 File changed.Preview size limit exceeded, changes collapsed. Show changes
core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php +6 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ protected function t($string, array $args = [], array $options = []) { * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ protected function formatPlural($count, $singular, $plural, array $args = [], array $options = []) { return new PluralTranslatableMarkup($count, $singular, $plural, $args, $options, $this->getStringTranslation()); Loading @@ -84,6 +87,9 @@ protected function formatPlural($count, $singular, $plural, array $args = [], ar * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ protected function getNumberOfPlurals($langcode = NULL) { if (\Drupal::hasService('locale.plural.formula')) { Loading