Line currency.tokens.inc
------ -----------------------------------------------------------------------
65 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see
the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
------ -----------------------------------------------------------------------

------ -------------------------------------------------------------------------
Line modules/currency_intl/src/Plugin/Currency/AmountFormatter/Intl.php
------ -------------------------------------------------------------------------
58 Parameter $currency of method
Drupal\currency_intl\Plugin\Currency\AmountFormatter\Intl::formatAmount
() has invalid typehint type Commercie\Currency\CurrencyInterface.
62 Access to constant PATTERN_DECIMAL on an unknown class NumberFormatter.
62 Instantiated class NumberFormatter not found.
63 Access to constant FRACTION_DIGITS on an unknown class NumberFormatter.
64 Access to constant DECIMAL_SEPARATOR_SYMBOL on an unknown class
NumberFormatter.
65 Access to constant MONETARY_SEPARATOR_SYMBOL on an unknown class
NumberFormatter.
66 Access to constant GROUPING_SEPARATOR_SYMBOL on an unknown class
NumberFormatter.
67 Access to constant MONETARY_GROUPING_SEPARATOR_SYMBOL on an unknown
class NumberFormatter.
68 Access to constant CURRENCY_SYMBOL on an unknown class NumberFormatter.
69 Access to constant INTL_CURRENCY_SYMBOL on an unknown class
NumberFormatter.
------ -------------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line modules/currency_intl/src/Tests/ModuleInstallUninstallWebTest.php
------ ----------------------------------------------------------------------
24 \Drupal calls should be avoided in classes, use dependency injection
instead
25 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------

------ -----------------------------------------------------------------------------------
Line modules/currency_intl/tests/src/Unit/Plugin/Currency/AmountFormatter/IntlTest.php
------ -----------------------------------------------------------------------------------
42 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase:
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.
52 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase:
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.
74 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase:
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.
99 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase:
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.
99 Class Commercie\Currency\CurrencyInterface not found.
------ -----------------------------------------------------------------------------------

------ -------------------------------------------------------------------------
Line modules/currency_test/currency_test.install
------ -------------------------------------------------------------------------
39 Call to deprecated function db_insert():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call insert() on it. For example,
------ -------------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line modules/currency_test/src/CurrencyAmountElement.php
------ ----------------------------------------------------------------------
54 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line modules/currency_test/src/CurrencySignElement.php
------ ----------------------------------------------------------------------
53 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line src/ConfigImporter.php
------ ----------------------------------------------------------------------
22 Property Drupal\currency\ConfigImporter::$currencyResourceRepository
has unknown class Commercie\Currency\ResourceRepository as its type.
73 Instantiated class Commercie\Currency\ResourceRepository not found.
------ ----------------------------------------------------------------------

------ ---------------------------------------------------------------------
Line src/Controller/FixedRatesOverview.php
------ ---------------------------------------------------------------------
Class Commercie\CurrencyExchange\FixedExchangeRateProviderTrait not
found and could not be autoloaded.
------ ---------------------------------------------------------------------

------ ---------------------------------------------------------------------
Line src/Element/CurrencyAmount.php
------ ---------------------------------------------------------------------
45 Property Drupal\currency\Element\CurrencyAmount::$input has unknown
class Commercie\Currency\InputInterface as its type.
60 Parameter $input of method
Drupal\currency\Element\CurrencyAmount::__construct() has invalid
typehint type Commercie\Currency\InputInterface.
------ ---------------------------------------------------------------------

------ -----------------------------------------------------------------------
Line src/Entity/Currency.php
------ -----------------------------------------------------------------------
113 Property Drupal\currency\Entity\Currency::$usages has unknown class
Commercie\Currency\UsageInterface as its type.
130 Instantiated class Commercie\Currency\Usage not found.
328 Call to deprecated method entityManager() of class
Drupal\Core\Entity\EntityBase:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see
the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
------ -----------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line src/Entity/Currency/CurrencyDeleteForm.php
------ ----------------------------------------------------------------------
64 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------

------ -------------------------------------------------------------------------
Line src/Entity/Currency/CurrencyForm.php
------ -------------------------------------------------------------------------
31 Property Drupal\currency\Entity\Currency\CurrencyForm::$inputParser has
unknown class Commercie\Currency\InputInterface as its type.
52 Parameter $input_parser of method
Drupal\currency\Entity\Currency\CurrencyForm::__construct() has invalid
typehint type Commercie\Currency\InputInterface.
153 Method Drupal\Core\Entity\EntityForm::form() invoked with 3 parameters,
2 required.
160 Method Drupal\Core\Entity\EntityForm::getEntity() invoked with 1
parameter, 0 required.
162 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
181 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface:
in Drupal 8.0.0, intended to be removed in Drupal 9.0.0
Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.
203 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface:
in Drupal 8.0.0, intended to be removed in Drupal 9.0.0
Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.
------ -------------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line src/Entity/CurrencyLocale/CurrencyLocaleDeleteForm.php
------ ----------------------------------------------------------------------
62 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------

------ -------------------------------------------------------------------------
Line src/Entity/CurrencyLocale/CurrencyLocaleForm.php
------ -------------------------------------------------------------------------
139 Method Drupal\Core\Entity\EntityForm::form() invoked with 3 parameters,
2 required.
162 Method Drupal\Core\Entity\EntityForm::getEntity() invoked with 1
parameter, 0 required.
164 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.

Many more bugs like above

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Kushal Bansal created an issue. See original summary.

Berdir’s picture

Status: Needs work » Needs review
Issue tags: -Drupal 9 Deprecated Code Report
FileSize
169.3 KB

This was a big chunk.

Berdir’s picture

Strange, the intl test behaves different for me locally.

Berdir’s picture

Berdir’s picture

Category: Bug report » Task
Status: Needs review » Fixed

Committed.

  • Berdir committed 6fa277b on 8.x-3.x
    Issue #3079834 by Berdir: Drupal 9 Deprecated Code Report
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Kristen Pol’s picture

Issue tags: +Drupal 9 compatibility

Per a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.