You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in drupal:8.0.0 and is removed from drupal:9.0.0.',
42
-
'Method Drupal\\Core\\Entity\\EntityManager::setFieldMap() should return $this(Drupal\\Core\\Entity\\EntityManager) but returns Drupal\\Core\\Entity\\EntityFieldManager.',
in drupal:8.0.0 and is removed from drupal:9.0.0.',2],
40
+
['Method Drupal\\Core\\Entity\\EntityManager::setFieldMap() should return $this(Drupal\\Core\\Entity\\EntityManager) but returns Drupal\\Core\\Entity\\EntityFieldManager.', 2],
'Call to deprecated constant DATETIME_STORAGE_TIMEZONE: Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::STORAGE_TIMEZONE instead.',
50
-
'Call to deprecated constant DATETIME_DATE_STORAGE_FORMAT: Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATE_STORAGE_FORMAT instead.',
46
+
['Call to deprecated constant DATETIME_STORAGE_TIMEZONE: Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::STORAGE_TIMEZONE instead.', 2],
47
+
['Call to deprecated constant DATETIME_DATE_STORAGE_FORMAT: Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATE_STORAGE_FORMAT instead.', 2],
'Parameter $entity_manager of method Drupal\\phpstan_fixtures\\Controller\\EntityManagerInjectedController::__construct() has typehint with deprecated interface Drupal\\Core\\Entity\\EntityManagerInterface:
58
-
in drupal:8.0.0 and is removed from drupal:9.0.0.',
59
-
'The "entity.manager" service is deprecated. You should use the \'entity_type.manager\' service instead.'
53
+
['Parameter $entity_manager of method Drupal\\phpstan_fixtures\\Controller\\EntityManagerInjectedController::__construct() has typehint with deprecated interface Drupal\\Core\\Entity\\EntityManagerInterface:
54
+
in drupal:8.0.0 and is removed from drupal:9.0.0.', 2],
'Parameter $entity_manager of method Drupal\\phpstan_fixtures\\Plugin\\Block\\EntityManagerInjectedBlock::__construct() has typehint with deprecated interface Drupal\\Core\\Entity\\EntityManagerInterface:
67
-
in drupal:8.0.0 and is removed from drupal:9.0.0.',
68
-
'Unsafe usage of new static().',
69
-
'The "entity.manager" service is deprecated. You should use the \'entity_type.manager\' service instead.'
60
+
['Parameter $entity_manager of method Drupal\\phpstan_fixtures\\Plugin\\Block\\EntityManagerInjectedBlock::__construct() has typehint with deprecated interface Drupal\\Core\\Entity\\EntityManagerInterface:
61
+
in drupal:8.0.0 and is removed from drupal:9.0.0.', 2],
Copy file name to clipboardExpand all lines: tests/src/DrupalIntegrationTest.php
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,7 @@ public function testExtensionReportsError(): void
54
54
$error = array_shift($errors);
55
55
self::assertEquals('Function phpstan_fixtures_MissingReturnRule() should return string but return statement is missing.', $error->getMessage());
56
56
if ($is_d9) {
57
-
$error = array_shift($errors);
58
-
self::assertEquals('The "app.root" service is deprecated in drupal:9.0.0 and is removed from drupal:10.0.0. Use the app.root parameter instead. See https://www.drupal.org/node/3080612', $error->getMessage());
57
+
array_shift($errors);
59
58
$error = array_shift($errors);
60
59
self::assertEquals('Binary operation "." between SplString and \'/core/includes…\' results in an error.', $error->getMessage());
61
60
}
@@ -87,14 +86,12 @@ public function testServiceMapping8()
87
86
}
88
87
$errorMessages = [
89
88
'The "entity.manager" service is deprecated. You should use the \'entity_type.manager\' service instead.',
90
-
'\Drupal calls should be avoided in classes, use dependency injection instead',
91
89
'Call to an undefined method Drupal\Core\Entity\EntityManager::thisMethodDoesNotExist().',
92
90
'Call to deprecated method getDefinitions() of class Drupal\\Core\\Entity\\EntityManager:
93
91
in drupal:8.0.0 and is removed from drupal:9.0.0.
94
92
Use \\Drupal\\Core\\Entity\\EntityTypeManagerInterface::getDefinitions()
95
93
instead.',
96
94
'The "path.alias_manager" service is deprecated. Use "path_alias.manager" instead. See https://drupal.org/node/3092086',
97
-
'\Drupal calls should be avoided in classes, use dependency injection instead',
'The "app.root" service is deprecated in drupal:9.0.0 and is removed from drupal:10.0.0. Use the app.root parameter instead. See https://www.drupal.org/node/3080612',
'The "app.root" service is deprecated in drupal:9.0.0 and is removed from drupal:10.0.0. Use the app.root parameter instead. See https://www.drupal.org/node/3080612',
0 commit comments