File tree Expand file tree Collapse file tree 5 files changed +17
-18
lines changed Expand file tree Collapse file tree 5 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ script:
13
13
after_script :
14
14
- mkdir -p build/logs
15
15
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
16
- - php vendor/bin/coveralls -v
16
+ - vendor/bin/php- coveralls --exclude-no-stmt -v
Original file line number Diff line number Diff line change 10
10
}
11
11
],
12
12
"require" : {
13
- "php" : " >= 7.2" ,
14
- "illuminate/support" : " ^6 .0" ,
15
- "illuminate/database" : " ^6 .0" ,
16
- "illuminate/validation" : " ^6 .0"
13
+ "php" : " ^ 7.2.5 " ,
14
+ "illuminate/support" : " ^7 .0" ,
15
+ "illuminate/database" : " ^7 .0" ,
16
+ "illuminate/validation" : " ^7 .0"
17
17
},
18
18
"require-dev" : {
19
- "phpunit/phpunit" : " ^6.0 || ^7.0 ||^ 8.0" ,
20
- "mockery/mockery" : " ^0.9.9 " ,
21
- "squizlabs/php_codesniffer" : " ^2.8 " ,
22
- "satooshi /php-coveralls" : " ^1.0 "
19
+ "phpunit/phpunit" : " ^8.0" ,
20
+ "mockery/mockery" : " ^1.2.1 " ,
21
+ "squizlabs/php_codesniffer" : " ^3.1 " ,
22
+ "php-coveralls /php-coveralls" : " ^2.4 "
23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {
Original file line number Diff line number Diff line change 2
2
3
3
namespace Jaspaul \EloquentModelValidation \Contracts ;
4
4
5
- use Illuminate \Contracts \Support \MessageProvider ;
5
+ use Illuminate \Contracts \Support \MessageBag ;
6
6
7
7
interface Validatable
8
8
{
@@ -23,11 +23,11 @@ public function isValid() : bool;
23
23
public function isInvalid () : bool ;
24
24
25
25
/**
26
- * Returns a Message Provider containing the errors for the model validation.
26
+ * Returns a Message Bag containing the errors for the model validation.
27
27
*
28
- * @return \Illuminate\Contracts\Support\MessageProvider
28
+ * @return \Illuminate\Contracts\Support\MessageBag
29
29
*/
30
- public function getErrors () : MessageProvider ;
30
+ public function getErrors () : MessageBag ;
31
31
32
32
/**
33
33
* Returns the reasons why the validator failed.
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Validation \Factory ;
6
6
use Illuminate \Container \Container ;
7
+ use Illuminate \Contracts \Support \MessageBag ;
7
8
use Illuminate \Contracts \Validation \Validator ;
8
9
use Illuminate \Validation \ValidationException ;
9
- use Illuminate \Contracts \Support \MessageProvider ;
10
10
11
11
trait Validates
12
12
{
@@ -97,11 +97,11 @@ public function validate()
97
97
}
98
98
99
99
/**
100
- * Returns a Message Provider containing the errors for the model validation.
100
+ * Returns a Message Bag containing the errors for the model validation.
101
101
*
102
- * @return \Illuminate\Contracts\Support\MessageProvider
102
+ * @return \Illuminate\Contracts\Support\MessageBag
103
103
*/
104
- public function getErrors () : MessageProvider
104
+ public function getErrors () : MessageBag
105
105
{
106
106
return $ this ->getValidator ()->getMessageBag ();
107
107
}
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ abstract class TestCase extends Base
17
17
protected function setUpMockery ()
18
18
{
19
19
Mockery::getConfiguration ()->allowMockingNonExistentMethods (false );
20
- Mockery::getConfiguration ()->allowMockingMethodsUnnecessarily (false );
21
20
}
22
21
23
22
/**
You can’t perform that action at this time.
0 commit comments