Currently I have a test that doesn't pass because of the Rule class having a closure attached to the rule. I'm seeing this happen with Rule::requiredIf but could also be seeing this using the new Rule::when() but that's just newly introduced to the Laravel framework. Has anyone come across this unexpected situation?
Currently I have a test that doesn't pass because of the Rule class having a closure attached to the rule. I'm seeing this happen with
Rule::requiredIf
but could also be seeing this using the newRule::when()
but that's just newly introduced to the Laravel framework. Has anyone come across this unexpected situation?Running the following test gives me the following result.