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
An error "Anonymous function should return false but returns bool." occurs when a mix of some operations and comparisons are used. The given example may look strange, but it is a smallest code fragment, which gives the error. Of course, in the real code false and true values are possible, but when PHPStan thinks that the calculated result must be false or true only, it emits an error.