Skip to content
Snippets Groups Projects

Issue #3498301: Added null types.

All threads resolved!
1 file
+ 9
5
Compare changes
  • Side-by-side
  • Inline
@@ -95,17 +95,22 @@ class ManageComponentAttributesForm extends FormBase {
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
* @param \Drupal\layout_builder\SectionStorageInterface $section_storage
* @param \Drupal\layout_builder\SectionStorageInterface|null $section_storage
* The section storage being configured.
* @param int $delta
* @param ?int $delta
* The original delta of the section.
* @param string $uuid
* @param ?string $uuid
* The UUID of the block being updated.
*
* @return array
* The form array.
*/
public function buildForm(array $form, FormStateInterface $form_state, SectionStorageInterface $section_storage = NULL, $delta = NULL, $uuid = NULL) {
public function buildForm(
array $form,
FormStateInterface $form_state,
?SectionStorageInterface $section_storage = NULL,
?int $delta = NULL,
?string $uuid = NULL) {
$parameters = array_slice(func_get_args(), 2);
foreach ($parameters as $parameter) {
if (is_null($parameter)) {
@@ -398,5 +403,4 @@ class ManageComponentAttributesForm extends FormBase {
}
return (int) $this->delta;
}
}
Loading