Skip to content
Snippets Groups Projects
Commit f6fedd19 authored by David Suissa's avatar David Suissa Committed by Michael Anello
Browse files

Issue #3405618 by viren18febS: GitLab CI - PHPStan - "Unsafe usage of new static()"

parent 883c3485
No related branches found
No related tags found
1 merge request!78Issue #3405618 by DYdave, ultimike: Automated testing on GitLab CI: Fixed...
Pipeline #73040 passed
...@@ -74,7 +74,7 @@ class SmartTrimFormatter extends FormatterBase implements ContainerFactoryPlugin ...@@ -74,7 +74,7 @@ class SmartTrimFormatter extends FormatterBase implements ContainerFactoryPlugin
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler service. * The module handler service.
*/ */
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, TruncateHTML $truncate_html, Token $token, ModuleHandlerInterface $module_handler) { final public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, TruncateHTML $truncate_html, Token $token, ModuleHandlerInterface $module_handler) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings); parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
$this->truncateHtml = $truncate_html; $this->truncateHtml = $truncate_html;
$this->token = $token; $this->token = $token;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment