Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2019 at 20:35 UTC
Updated:
2 Apr 2019 at 10:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
claudiu.cristeaPatch.
Comment #3
andypostas it used in private method maybe better to make var private so it will not be serialized?
Comment #5
martin107 commentedEverytime I read stackoverflow concerning static properties -- andypost's serialisation comment comes up.
So I think the change makes sense to me
@claudiu.cristea - thanks for all the effort you have made recently into removing drupal_static(() calls from core.
It is really good to see.
claudiu.cristea++
Comment #6
andypostNice
Comment #7
catchSince the variable is only used in this one method, could it just be declared in the method itself instead of as a static class property?
Comment #8
claudiu.cristeaOK, better.
Comment #9
andypostnice
Comment #10
catchCommitted 59f1d6c and pushed to 8.8.x. Thanks!