Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ matrix:

before_script:
- export COMPOSER=tests/composer-$LARAVEL.json
- travis_retry composer install --no-interaction --prefer-source
- composer install illuminate/validation
- composer install
- composer dump-autoload

script:
- vendor/bin/phpunit --coverage-clover=coverage.clover
Expand Down
3 changes: 2 additions & 1 deletion public/js/jsvalidation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Remote/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Proengsoft\JsValidation\Remote;

use Illuminate\Http\JsonResponse;
use Illuminate\Validation\ValidationRuleParser;
//use Illuminate\Validation\ValidationRuleParser;
use Proengsoft\JsValidation\Support\RuleListTrait;
use Illuminate\Http\Exceptions\HttpResponseException;
use Illuminate\Validation\Validator as BaseValidator;
Expand Down Expand Up @@ -154,7 +154,7 @@ protected function purgeNonRemoteRules($rules, $validator)
$protectedValidator = $this->createProtectedCaller($validator);

foreach ($rules as $i => $rule) {
$parsedRule = ValidationRuleParser::parse([$rule]);
$parsedRule = \ValidationRuleParser::parse([$rule]);
if (! $this->isRemoteRule($parsedRule[0])) {
unset($rules[$i]);
}
Expand Down