Commit 13bb0cca authored by Bálint Nagy's avatar Bálint Nagy Committed by Bálint Nagy
Browse files

Issue #3272728 by tmaiochi, nagy.balint, deiviic, apaderno: "$this" can no...

Issue #3272728 by tmaiochi, nagy.balint, deiviic, apaderno: "$this" can no longer be used in a plain function or static method since PHP 7.1
parent 7638b1e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -372,7 +372,7 @@ class DateTimeFlatPickrWidget extends DateTimeWidgetBase {
  /**
   * Hour element validation.
   */
  public static function fieldSettingsHourElementValidate(&$element, FormStateInterface $form_state) {
  public function fieldSettingsHourElementValidate(&$element, FormStateInterface $form_state) {
    $setting = &$form_state->getValue($element['#parents']);
    if (isset($setting)) {
      // For two-tiered array.
@@ -394,7 +394,7 @@ class DateTimeFlatPickrWidget extends DateTimeWidgetBase {
  /**
   * Minute element validation.
   */
  public static function fieldSettingsMinElementValidate(&$element, FormStateInterface $form_state) {
  public function fieldSettingsMinElementValidate(&$element, FormStateInterface $form_state) {
    $setting = &$form_state->getValue($element['#parents']);
    if (isset($setting)) {
      // For two-tiered array.