Willem Wollebrants
9726d0f835
remove unused parameter for required rule
2017-10-30 19:44:17 +01:00
misantron
b0ddfb3a37
Merge remote-tracking branch 'origin/validators-patch' into validators-patch
...
# Conflicts:
# src/Valitron/Validator.php
2017-10-26 23:11:06 +03:00
misantron
d9a466b833
Array contains and unique validators added, code style fixes
2017-10-26 23:09:45 +03:00
Dennis Meckel
eb436a382f
Fixed strict integer rule and added more integer unit tests
2017-10-13 19:39:59 +02:00
Willem Wollebrants
20a9c2d604
Merge pull request #218 from vlucas/issue208
...
validate fields that are required, but may have empty or null values. Handles #208
v1.4.1
2017-08-28 22:06:05 +02:00
Willem Wollebrants
9a45f79b58
Explain required-rule parameter
2017-08-28 21:59:40 +02:00
Willem Wollebrants
4cc030c68a
validate fields that are required, but may have empty or null values. #208
2017-08-28 21:52:21 +02:00
Willem Wollebrants
db089ab271
Merge pull request #217 from vlucas/iss214
...
Remove (0-9) from default integer message #214
2017-08-28 08:50:38 +02:00
Willem Wollebrants
f35b010413
Remove (0-9) from default integer message #214
2017-08-28 08:47:45 +02:00
Willem Wollebrants
38876b96ea
Merge pull request #213 from vlucas/pr210
...
Test for pr #212
2017-08-27 13:37:26 +02:00
Willem Wollebrants
6350cf8cb0
Test for pr #212
2017-08-27 13:34:43 +02:00
Willem Wollebrants
f49917ecfd
Merge pull request #210 from jatubio/patch-1
...
Don't prepend field name to error message when {field} is already set in the message
2017-08-27 13:16:37 +02:00
Willem Wollebrants
4268b58e40
Merge pull request #212 from jatubio/patch-2
...
Update es.php
2017-08-27 13:12:00 +02:00
Juan Antonio Tubio
658b0ed5cc
Update es.php
...
Corrected some expressions
2017-08-25 18:20:37 +02:00
Willem Wollebrants
1e98c97ca2
Merge pull request #211 from vlucas/errormsg
...
Make sure error messages get tested too
2017-07-18 20:57:38 +02:00
Willem Wollebrants
b29fbc50ff
Make sure error messages get tested too
2017-07-18 20:54:29 +02:00
Juan Antonio Tubio
a80cbf0f3f
Fixing code indentation
2017-07-18 16:46:38 +02:00
Juan Antonio Tubio
c6b2865ef6
Checking if mb_strpos() exists before use them
2017-07-18 16:44:05 +02:00
Juan Antonio Tubio
51575f3f9d
Don't add {field} to message uf already exists
...
Fixed rule() function to don't add {field} to message if already exists on them
2017-07-18 16:18:00 +02:00
Willem Wollebrants
c3d644e1d7
Merge pull request #206 from vlucas/issue101
...
Always run 'accepted' validation (#101 )
2017-07-06 11:27:46 +02:00
Willem Wollebrants
86cdecf193
Always run 'accepted' validation ( #101 )
2017-07-06 11:21:27 +02:00
Willem Wollebrants
c6c0f95129
Merge pull request #205 from vlucas/issue204
...
Handle malformed bulk rules (#204 )
2017-07-06 11:06:28 +02:00
Willem Wollebrants
ec77d601ad
Handle malformed bulk rules ( #204 )
2017-07-06 11:03:04 +02:00
Willem Wollebrants
107d1eebc1
Merge pull request #202 from atanasov/master
...
Bulgarian language
2017-06-26 23:34:20 +02:00
Atanas Atanasov
8c09f881b6
Bulgarian language
2017-06-26 14:06:11 +03:00
Willem Wollebrants
a6cf3a8c86
Merge pull request #201 from auroraeosrose/foreachbug
...
Check if the value in getParts is non-scalar to prevent "Invalid argument to foreach" error
2017-06-23 23:38:17 +02:00
Willem Wollebrants
1d8abc73b6
Merge pull request #200 from auroraeosrose/patch-1
...
Fix issue where preg_match spews when passed an array
2017-06-23 23:34:07 +02:00
Elizabeth M Smith
a7e89cf26c
fix it correctly...
2017-06-23 14:41:46 -04:00
Elizabeth M Smith
66464f4c51
test for the bug
2017-06-23 14:05:47 -04:00
Elizabeth M Smith
e8ab4dc157
Fixes invalid argument to foreach
...
happens when you have a rule looking for sub items in arrays, but actually pass in a scalar value
bombs out with invalid argument to foreach
2017-06-23 14:01:34 -04:00
Elizabeth M Smith
4896ade387
really? 5.3 support? ewww
2017-06-23 13:50:49 -04:00
Elizabeth M Smith
05b5c40515
test for the change
2017-06-23 13:43:15 -04:00
Elizabeth M Smith
c729a0c4ac
avoids php blowing up if an array value is passed
...
if incoming data has an array value set with a slug rule on it, you get
preg_match() expects parameter 2 to be string, array given
vendor\vlucas\valitron\src\Valitron\Validator.php:571
2017-06-23 13:41:39 -04:00
Willem Wollebrants
15171779b3
Merge pull request #197 from adelmazza/patch-2
...
Update it.php
2017-05-15 09:09:53 +02:00
adelmazza
fc4e617b1a
Update it.php
...
Added lenghtMin, lenghtMax and instanceOf to the it.php language file.
2017-05-14 16:27:01 +02:00
Willem Wollebrants
a48ead4b00
Merge pull request #192 from candrianarijaona/update-french-trad
...
Update french translations
2017-04-20 14:19:42 +02:00
Willem Wollebrants
67053e077f
Merge pull request #190 from gustavonovaes/patch-1
...
Update pt-br.php
2017-04-20 14:18:53 +02:00
Claude Andrianarijaona
070823ee7b
Fix typo 'and'
2017-04-08 21:02:15 +02:00
Claude Andrianarijaona
dafb5ecde1
Add some french translations
2017-04-08 20:59:12 +02:00
Gustavo Novaes
4512b69e66
Update pt-br.php
...
Include missing rules
2017-04-07 12:01:05 -03:00
Willem Wollebrants
b33c791162
Merge pull request #187 from notona/feature/fix-interger-validation
...
Add strict mode to validateInteger
v1.4.0
2017-02-23 09:31:59 +01:00
notona
326d61f186
Merge pull request #1 from willemwollebrants/feature/fix-interger-validation
...
Feature/fix interger validation
2017-02-22 10:34:19 +09:00
Willem Wollebrants
1942e53a5c
Remove unneeded test testIntegerWithMaxValidation
2017-02-21 21:12:27 +01:00
Willem Wollebrants
28d954817b
Use an optional parameter to make validateInteger more strict
2017-02-21 21:11:14 +01:00
notona
cb1ecb12e6
fix for test codes
2017-02-20 12:32:37 +09:00
notona
bc035a4a95
add more tests
2017-02-20 12:28:16 +09:00
notona
7c990e39ef
fix integer validation process
2017-02-20 12:18:18 +09:00
Willem Wollebrants
971501551c
Merge pull request #185 from AchoArnold/patch-1
...
Makes the data parameter optional in the constructor
2017-02-14 16:36:59 +01:00
Acho Arnold
f698be0c95
Makes the data parameter optional in the constructor
...
This Fixes #184
2017-02-14 16:30:25 +01:00
Willem Wollebrants
79de211bdf
Merge pull request #183 from vlucas/mapFieldRules
...
Map field rules
2017-02-09 20:49:39 +01:00