TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

Problem:

TypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string in Drupal\views\Plugin\views\argument\NumericArgument->title() (line 63 of web/core/modules/views/src/Plugin/views/argument/NumericArgument.php).

 

Comments

Line 63, 99 :

 -    $this->operator = $break->operator;
 +    if($break->operator){
 +        $this->operator = $break->operator;
 +    }

 

It works too:

  • web/core/modules/views/src/Plugin/views/argument/NumericArgument.php 

Line 63, 96 :

- $this->operator = $break->operator;
+ $this->operator = $break->operator ?? '' ;

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare