By using static anonymous functions, you don’t propagate the context of creation with the closure, so $this
won’t be available anymore. This may avoid leaks, or will allow the $this variable to be filled by another context later.
Reference: https://www.exakat.io/en/5-usages-of-static-keyword-in-php/
CLICK HERE to find out more related problems solutions.