Method Drupal\ultimate_cron\Form\SchedulerSettingsForm::buildForm() should return array but return statement is missing

Created on 7 May 2024, 8 months ago
Updated 21 June 2024, 6 months ago

Problem/Motivation

According to phanstan report I found the following issue:

 Line   ultimate_cron/src/Form/SchedulerSettingsForm.php
 ------ --------------------------------------------------------------------------------------------------------------------------
  104    Method Drupal\ultimate_cron\Form\SchedulerSettingsForm::buildForm() should return array but return statement is missing.

Proposed resolution

According to FormInterface returned value of buildForm() method should be array type . So we need to add return $form to the method Drupal\ultimate_cron\Form\SchedulerSettingsForm::buildForm() .

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇧🇾Belarus alena_stanul

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024