Issue #3035297 by claudiu.cristea, martin107, andypost: Don't use drupal_static in AutoIncrementingTestItem
parent
a0f43e0abd
commit
59f1d6cbbd
|
@ -32,8 +32,8 @@ class AutoIncrementingTestItem extends IntegerItem {
|
|||
* The incremented field value.
|
||||
*/
|
||||
private static function getIncrementedFieldValue() {
|
||||
$current_value = &drupal_static(__METHOD__, 0);
|
||||
return ++$current_value;
|
||||
static $cache = 0;
|
||||
return ++$cache;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue