diff --git a/core/lib/Drupal/Component/Plugin/PluginManagerBase.php b/core/lib/Drupal/Component/Plugin/PluginManagerBase.php index 2cd3992..5f95873 100644 --- a/core/lib/Drupal/Component/Plugin/PluginManagerBase.php +++ b/core/lib/Drupal/Component/Plugin/PluginManagerBase.php @@ -75,7 +75,6 @@ public function getInstance(array $options) { /** * Performs extra processing on plugin definitions. */ - protected function processDefinition(&$definition, $plugin_id) { - } + protected function processDefinition(&$definition, $plugin_id) {} } diff --git a/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/DefaultsTestPluginManager.php b/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/DefaultsTestPluginManager.php index a1f78eb..a271dc0 100644 --- a/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/DefaultsTestPluginManager.php +++ b/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/DefaultsTestPluginManager.php @@ -28,7 +28,7 @@ public function __construct() { // Create the object that can be used to return definitions for all the // plugins available for this type. Use DefaultsDecorator to test that // defaults are applied correctly. - $this->discovery = new DefaultsDecorator(StaticDiscovery(), $defaults); + $this->discovery = new DefaultsDecorator(new StaticDiscovery(), $defaults); $this->factory = new DefaultFactory($this); // Add a plugin with a custom value.