-
Fixed issue #1
-
Fixed issue #2
-
Fixed issue #3
-
Replaced mbstring functions with grapheme functions
-
Added test configuration for php7
- Introduced
ifPassed( $continue )
method for a conditional continue of x further checks, only if all previous checks passed so far.
See README for an example.
- Added support for custom message collecting by introducing the
CollectsMessage
interface and a third contructor parameter
<?php
/**
* @param int $mode
* @param ProvidesValuesToValidate|null $dataProvider
* @param CollectsMessages $messageCollector
*/
public function __construct(
$mode = CheckMode::CONTINUOUS,
ProvidesValuesToValidate $dataProvider = null,
CollectsMessages $messageCollector = null
)
- Added 2 ready to use message collectors:
ScalarListMessageCollector
for collecting scalar message values (default, if none is provided)GroupedListMessageCollector
for collecting scalar key / scalar value messages grouped by key
See README for an example.
- Changed modifier of
$passed
member fromprotected
toprivate
inFluidValidator
. - Replaced
protected $messages
byprivate $messageCollector
inFluidValidator
.
Hint: Both changes only affect extending classes.
The behaviour of FluidValidator
was left unchanged.
- Added strict bool check methods
isTrue
/isFalse
andisTrueOrNull
/isFalseOrNull
- Added
checkIf
method to conditionally skip a number of following check methods - Added a
if...
method for each check method to make the check result a condition - Changed modifier of
getValue
fromprotected
topublic
to give direct access to values from a data provider
See README for a full method list and details.