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:
1313after_script :
1414 - mkdir -p build/logs
1515 - 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 1010 }
1111 ],
1212 "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"
1717 },
1818 "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 "
2323 },
2424 "autoload" : {
2525 "psr-4" : {
Original file line number Diff line number Diff line change 22
33namespace Jaspaul \EloquentModelValidation \Contracts ;
44
5- use Illuminate \Contracts \Support \MessageProvider ;
5+ use Illuminate \Contracts \Support \MessageBag ;
66
77interface Validatable
88{
@@ -23,11 +23,11 @@ public function isValid() : bool;
2323 public function isInvalid () : bool ;
2424
2525 /**
26- * Returns a Message Provider containing the errors for the model validation.
26+ * Returns a Message Bag containing the errors for the model validation.
2727 *
28- * @return \Illuminate\Contracts\Support\MessageProvider
28+ * @return \Illuminate\Contracts\Support\MessageBag
2929 */
30- public function getErrors () : MessageProvider ;
30+ public function getErrors () : MessageBag ;
3131
3232 /**
3333 * Returns the reasons why the validator failed.
Original file line number Diff line number Diff line change 44
55use Illuminate \Validation \Factory ;
66use Illuminate \Container \Container ;
7+ use Illuminate \Contracts \Support \MessageBag ;
78use Illuminate \Contracts \Validation \Validator ;
89use Illuminate \Validation \ValidationException ;
9- use Illuminate \Contracts \Support \MessageProvider ;
1010
1111trait Validates
1212{
@@ -97,11 +97,11 @@ public function validate()
9797 }
9898
9999 /**
100- * Returns a Message Provider containing the errors for the model validation.
100+ * Returns a Message Bag containing the errors for the model validation.
101101 *
102- * @return \Illuminate\Contracts\Support\MessageProvider
102+ * @return \Illuminate\Contracts\Support\MessageBag
103103 */
104- public function getErrors () : MessageProvider
104+ public function getErrors () : MessageBag
105105 {
106106 return $ this ->getValidator ()->getMessageBag ();
107107 }
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ abstract class TestCase extends Base
1717 protected function setUpMockery ()
1818 {
1919 Mockery::getConfiguration ()->allowMockingNonExistentMethods (false );
20- Mockery::getConfiguration ()->allowMockingMethodsUnnecessarily (false );
2120 }
2221
2322 /**
You can’t perform that action at this time.
0 commit comments