tempest-framework icon indicating copy to clipboard operation
tempest-framework copied to clipboard

feat(validation): add closure driven rule

Open Phil-Venter opened this issue 1 year ago • 1 comments

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

Phil-Venter avatar Oct 11 '24 19:10 Phil-Venter

RE-opened because of https://github.com/tempestphp/tempest-framework/pull/570#issuecomment-2408387865

Phil-Venter avatar Oct 12 '24 13:10 Phil-Venter

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

brendt avatar Oct 18 '24 11:10 brendt