diff -u b/src/Hook/FileTemporaryValidatorHooks.php b/src/Hook/FileTemporaryValidatorHooks.php --- b/src/Hook/FileTemporaryValidatorHooks.php +++ b/src/Hook/FileTemporaryValidatorHooks.php @@ -19,7 +19,7 @@ * {@inheritdoc} */ #[Hook('field_widget_single_element_form_alter')] - public static function fieldWidgetSingleElementFormAlter(array &$element, FormStateInterface $form_state, array $context): void { + public function fieldWidgetSingleElementFormAlter(array &$element, FormStateInterface $form_state, array $context): void { if (isset($element['#type']) && in_array($element['#type'], [ 'managed_file', 'managed_file_plus',