Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not inappropriately register bind when the value is a closure
Such closure just has nothing to do in the $binds array. The code currently works because the binds compiler determines the binds to apply not by looking at the $binds array, but by looking at the query string, so it doesn't reach the closure. If we modify the binds compiler to instead look at the $binds array (which makes more sense), it would attempt to replace this registered named bind in the query string, and trying to replace with a closure would trigger a "cannot cast to string" error.
- Loading branch information