forked from laravel/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaca1cb
commit cee4dae
Showing
17 changed files
with
90 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2403,7 +2403,8 @@ public function testValidateEmail() | |
$this->assertFalse($v->passes()); | ||
|
||
$v = new Validator($trans, [ | ||
'x' => new class { | ||
'x' => new class | ||
{ | ||
public function __toString() | ||
{ | ||
return 'aslsdlks'; | ||
|
@@ -2413,7 +2414,8 @@ public function __toString() | |
$this->assertFalse($v->passes()); | ||
|
||
$v = new Validator($trans, [ | ||
'x' => new class { | ||
'x' => new class | ||
{ | ||
public function __toString() | ||
{ | ||
return '[email protected]'; | ||
|
@@ -4792,7 +4794,8 @@ public function testCustomValidationObject() | |
$this->getIlluminateArrayTranslator(), | ||
['name' => 'taylor'], | ||
[ | ||
'name' => new class implements Rule { | ||
'name' => new class implements Rule | ||
{ | ||
public function passes($attribute, $value) | ||
{ | ||
return $value === 'taylor'; | ||
|
@@ -4814,7 +4817,8 @@ public function message() | |
['name' => 'adam'], | ||
[ | ||
'name' => [ | ||
new class implements Rule { | ||
new class implements Rule | ||
{ | ||
public function passes($attribute, $value) | ||
{ | ||
return $value === 'taylor'; | ||
|
@@ -4868,7 +4872,8 @@ public function message() | |
$this->getIlluminateArrayTranslator(), | ||
['name' => 'taylor', 'states' => ['AR', 'TX'], 'number' => 9], | ||
[ | ||
'states.*' => new class implements Rule { | ||
'states.*' => new class implements Rule | ||
{ | ||
public function passes($attribute, $value) | ||
{ | ||
return in_array($value, ['AK', 'HI']); | ||
|
@@ -4906,7 +4911,8 @@ function ($attribute, $value, $fail) { | |
$this->getIlluminateArrayTranslator(), | ||
['name' => 42], | ||
[ | ||
'name' => new class implements Rule { | ||
'name' => new class implements Rule | ||
{ | ||
public function passes($attribute, $value) | ||
{ | ||
return $value === 'taylor'; | ||
|
@@ -4930,7 +4936,8 @@ public function message() | |
['name' => 42], | ||
[ | ||
'name' => [ | ||
new class implements Rule { | ||
new class implements Rule | ||
{ | ||
public function passes($attribute, $value) | ||
{ | ||
return $value === 'taylor'; | ||
|
@@ -4958,7 +4965,8 @@ public function testImplicitCustomValidationObjects() | |
$this->getIlluminateArrayTranslator(), | ||
['name' => ''], | ||
[ | ||
'name' => $rule = new class implements ImplicitRule { | ||
'name' => $rule = new class implements ImplicitRule | ||
{ | ||
public $called = false; | ||
|
||
public function passes($attribute, $value) | ||
|
Oops, something went wrong.