tempest-framework
tempest-framework copied to clipboard
feat(validation): add closure driven rule
I think we should also support closure-based rules. I've wanted that a few times, once when writing the release script, and another time when working on the publish command. Writing a class is a bit cumbersome in that situation. Enzo
RE-opened because of https://github.com/tempestphp/tempest-framework/pull/570#issuecomment-2408387865
Uh, I just had a realisation: is it even possible to pass closures to an attribute? I don't think it is? https://3v4l.org/kCoEl