Skip to content
Snippets Groups Projects

Issue #3516147 by dydave: PHPSTAN: Raised validation level from 0 (min) to 9 (max).

10 files
+ 90
20
Compare changes
  • Side-by-side
  • Inline

Files

@@ -50,13 +50,13 @@ class ResponsiveImageLinkFormatter extends ResponsiveImageFormatter implements C
@@ -50,13 +50,13 @@ class ResponsiveImageLinkFormatter extends ResponsiveImageFormatter implements C
* The plugin implementation definition.
* The plugin implementation definition.
* @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
* @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
* The definition of the field to which the formatter is associated.
* The definition of the field to which the formatter is associated.
* @param array $settings
* @param array<mixed> $settings
* The formatter settings.
* The formatter settings.
* @param string $label
* @param string $label
* The formatter label display setting.
* The formatter label display setting.
* @param string $view_mode
* @param string $view_mode
* The view mode.
* The view mode.
* @param array $third_party_settings
* @param array<mixed> $third_party_settings
* Any third party settings.
* Any third party settings.
* @param \Drupal\Core\Entity\EntityStorageInterface $responsive_image_style_storage
* @param \Drupal\Core\Entity\EntityStorageInterface $responsive_image_style_storage
* The responsive image style storage.
* The responsive image style storage.
@@ -75,9 +75,19 @@ class ResponsiveImageLinkFormatter extends ResponsiveImageFormatter implements C
@@ -75,9 +75,19 @@ class ResponsiveImageLinkFormatter extends ResponsiveImageFormatter implements C
}
}
/**
/**
* {@inheritdoc}
*
* Adds the 'entity_field.manager' service to parent's container.
* Adds the 'entity_field.manager' service to parent's container.
 
*
 
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
 
* The container to pull out services used in the plugin.
 
* @param array{field_definition: \Drupal\Core\Field\FieldDefinitionInterface, settings: array<string>, label: string, view_mode: string, third_party_settings: array<string>} $configuration
 
* The configuration array containing information about the plugin instance.
 
* @param string $plugin_id
 
* The plugin ID for the plugin instance.
 
* @param mixed $plugin_definition
 
* The plugin implementation definition.
 
*
 
* @return static
 
* Returns an instance of this plugin.
*/
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(
return new static(
Loading