You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is is better to use php Closure and not to write php code in strings?
Most of the time yes, it is better. There may be cases when you actually don't want closures, e.g. when you want to be able to access $this inside a method. It is fairly trivial to support closures though, you can even do it youself:
Is is better to use php Closure and not to write php code in strings? This issue is the only one that stops me to use soft-mocks.
As it is now:
Can be with closure:
The text was updated successfully, but these errors were encountered: