Commit graph

1398 commits

Author SHA1 Message Date
Henrique Moody f2bb77bb8e
Create tests for "egulias/email-validator" ~2.1 2016-10-29 15:37:09 +02:00
Henrique Moody c65e1e37f9
Merge branch '1.1' 2016-10-29 15:30:23 +02:00
Henrique Moody 710e807a68
Merge branch '1.0' into 1.1 2016-10-29 15:29:17 +02:00
Henrique Moody f82fcf0762
Prevent "Regex" to process non-string inputs 2016-10-29 15:21:14 +02:00
Henrique Moody bd636cc75e
Add support for "egulias/email-validator" 2.x 2016-10-29 15:20:13 +02:00
Jefersson Nathan e1678be8f2 Add license check by file to build
* composer require --dev malukenho/docheader
* Add license layout
* Add check license to the build
2016-10-29 12:31:13 +02:00
Julián Gutiérrez 195a8fe534
Create "Nif" rule
Rule to validate spanish NIF (DNI/NIE/CIF).
2016-10-09 17:50:52 +02:00
Henrique Moody 639cfdb3c7
Replace getMock() by createMock() 2016-09-20 08:46:56 +02:00
Henrique Moody 08ea9b7925
Merge branch '1.1' 2016-09-20 08:45:34 +02:00
Henrique Moody e457f19dbd
Merge branch '1.0' into 1.1 2016-09-20 08:44:39 +02:00
Henrique Moody 98050476c6
Always return a valid exception
If calling the method `getExceptionForPath()` when the exception was
nested but had no child it was returning null. This commit ensures that
it always return a valid exception.
2016-09-19 18:22:39 +02:00
Henrique Moody 6ee9776ea9
Merge branch '1.1' 2016-09-19 11:25:42 +02:00
Henrique Moody 3fa5bc0489
Merge branch '1.0' into 1.1 2016-09-19 11:24:33 +02:00
Emmerson d0a98ae5d3
Date rule accepting scalar and DateTimeInterface 2016-09-19 10:13:01 +02:00
Tomasz Regdos 38aedd01e3
Create "Vatin" rule (VAT identification number)
See https://en.wikipedia.org/wiki/VAT_identification_number
2016-09-19 09:50:50 +02:00
Henrique Moody 332b0d7bb6
Merge branch '1.1' 2016-09-19 09:33:16 +02:00
Henrique Moody c79d8fdf4f
Change file mode of "Image" rule 2016-09-19 09:32:42 +02:00
Gabriel Pedro a772d7f89a
Replace CNH validation algorithm
The old algorithm not working with some CNH values, e.g 00641829409.

You can even do some checking on
http://www.detran.pr.gov.br/modules/catasg/servicos-detalhes.php?tema=motorista&id=239.

Original algo can be found on
http://forum.imasters.com.br/topic/400293-validate-br.
2016-09-18 13:25:18 +02:00
Henrique Moody d2efb6923f
Merge branch '1.1' 2016-09-17 23:00:41 +02:00
Henrique Moody d30b3d1b49
Merge branch '1.0' into 1.1 2016-09-17 22:59:31 +02:00
Henrique Moody 8b32270d28
Add "symfony/polyfill-mbstring" as a dependency 2016-09-17 22:30:35 +02:00
Henrique Moody 4eb6d8090f
Merge branch '1.1' 2016-09-17 21:39:18 +02:00
Henrique Moody edf4e49ac6
Merge branch '1.0' into 1.1 2016-09-17 21:30:00 +02:00
Henrique Moody 4bcc4027f8
Try to use the getRelatedByName() method first
Then using the `findMessages()` method, tries to use the method
`getRelatedByName()` before using the `findRelated()` method.

This change was made because since on `KeyNested` rule you may have
names with '.' we'll never get the proper exception using
`findRelated()`.
2016-09-17 21:11:55 +02:00
Henrique Moody 98443bad0c
Get the proper exception when using findMessage() 2016-09-17 21:04:24 +02:00
Henrique Moody 494b67871f
Fix wrong behaviour on AbstractRelated
When you define the name for an `AbstractRelated` instance, you expect
that it also define the name for its child. But, when the child already
had a name the `AbstractRelated` was overwriting its name with the
`reference`.
2016-09-17 20:23:38 +02:00
Henrique Moody d716214258
Merge branch '1.1' 2016-09-13 11:33:55 +02:00
Henrique Moody 6d0e3a2422
Merge branch '1.0' into 1.1 2016-09-13 11:32:43 +02:00
Henrique Moody 7e88a7a0c8
Always check the type then executing KeyNested 2016-09-12 18:06:10 +02:00
Wesley Victhor Mendes Santiago d37876472c Merge pull request #723 from dlee3/docs/update-custom-rules-docs
Update to docs/README.md for the Custom rules documentation
2016-08-27 13:52:14 -03:00
David Lee 16133dd1ee Updated the documentation on creating Custom rules in docs/README.md. The information now correctly reflects how you go about creating your own custom rule. 2016-08-26 14:15:21 -05:00
Richard 8dd8032b0d AbstractComposite constructor has better practice 2016-08-04 09:12:09 +02:00
Henrique Moody fb471f9667 Remove deprecated "Iterable" rule 2016-08-03 11:08:22 +02:00
Henrique Moody ee79d1346d Merge branch '1.1' 2016-08-03 11:08:07 +02:00
Henrique Moody 53b737513b Merge branch '1.0' into 1.1 2016-08-03 11:06:53 +02:00
Henrique Moody fb7f19f9ad Fix missing docblock for "iterableType" rule 2016-08-03 11:05:28 +02:00
Henrique Moody 89c82b2fa2 Merge branch '1.1' 2016-08-03 10:54:28 +02:00
Henrique Moody cc179f9209 Merge branch '1.0' into 1.1 2016-08-03 10:53:00 +02:00
Henrique Moody c044b8bb09 Cast integer to use with long2ip function 2016-08-03 10:43:33 +02:00
Henrique Moody e5fdd87a16 Rename "Iterable" to "IterableType" 2016-08-03 10:43:33 +02:00
Henrique Moody 8c49c6a75b Run PHP 7.1 on Travis 2016-08-03 09:41:33 +02:00
Royall Spence 0d4659c08f replace deprecated getMock with createMock 2016-07-29 20:47:42 -04:00
Henrique Moody d2c8b4db63 Merge branch '1.1' 2016-07-01 16:23:01 +02:00
Tomasz Regdos 73a9ff40eb Fix Pesel validator when first char is zero 2016-07-01 16:22:12 +02:00
Henrique Moody 8b7f48c3b7 Upgrade PHPUnit version 2016-05-25 23:25:28 +02:00
Henrique Moody 50dfc5b331 Merge branch '1.1' 2016-05-07 20:54:53 +02:00
Henrique Moody b8ecd59f48 Merge branch '1.0' into 1.1 2016-05-07 20:54:08 +02:00
Marcel Prince 6597aa5114 Add method Identical To Validator.php 2016-05-07 20:51:56 +02:00
Henrique Moody bc190e0eb0 Drop support for PHP <5.6 2016-05-06 11:12:56 +02:00
Henrique Moody f741b59615 Merge branch '1.1' 2016-05-05 13:15:28 +02:00