fuel / validation

FuelPHP Framework - Data Validation library
70 stars 14 forks source link

Added Type Rule #12

Closed sagikazarmark closed 10 years ago

sagikazarmark commented 10 years ago

I added a type rule which can test a value against primitives and objects. Since the v2 Validation is not only about validating post values, I think it can be included.

emlynwest commented 10 years ago

Looks good except I would remove the tests for setting/getting custom messages. The tests need a little cleaning up as they overlap between the rules themselves and the abstract rule class.

Could you also please update the README to include your new rule? Other than that I would be happy to merge this in.