Static closures, like any other static method, cannot access $this .
Like any other method, a non-static closure that does not have access to $this usually works in a static context.
However, static closures, like any other static method, have a slight performance advantage over non-static closures, so in the interest of microcode optimization, I personally recommend declaring any closures that do not require access to $this as static.
source share