Skip to content

Commit

Permalink
[#14213] - More references corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 4, 2019
1 parent 72acf13 commit 96189ac
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 170 deletions.
8 changes: 4 additions & 4 deletions phalcon/Validation/Validation.zep
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use Phalcon\Messages\Messages;
use Phalcon\Validation\ValidationInterface;
use Phalcon\Validation\Exception;
use Phalcon\Validation\ValidatorInterface;
use Phalcon\Validation\CombinedFieldsValidator;
use Phalcon\Validation\AbstractCombinedFieldsValidator;

/**
* Phalcon\Validation
Expand All @@ -45,14 +45,14 @@ class Validation extends Injectable implements ValidationInterface
let this->validators = array_filter(
validators,
function(var element) {
return typeof element[0] != "array" || !(element[1] instanceof CombinedFieldsValidator);
return typeof element[0] != "array" || !(element[1] instanceof AbstractCombinedFieldsValidator);
}
);

let this->combinedFieldsValidators = array_filter(
validators,
function(var element) {
return typeof element[0] == "array" && element[1] instanceof CombinedFieldsValidator;
return typeof element[0] == "array" && element[1] instanceof AbstractCombinedFieldsValidator;
}
);

Expand All @@ -73,7 +73,7 @@ class Validation extends Injectable implements ValidationInterface

if typeof field == "array" {
// Uniqueness validator for combination of fields is handled differently
if validator instanceof CombinedFieldsValidator {
if validator instanceof AbstractCombinedFieldsValidator {
let this->combinedFieldsValidators[] = [field, validator];
} else {
for singleField in field {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 96189ac

Please sign in to comment.