File tree Expand file tree Collapse file tree 6 files changed +42
-13
lines changed Expand file tree Collapse file tree 6 files changed +42
-13
lines changed Original file line number Diff line number Diff line change 13
13
matrix :
14
14
- LARAVEL_VERSION="5.8.*" COMPOSER_FLAGS="--prefer-lowest"
15
15
- LARAVEL_VERSION="5.8.*" COMPOSER_FLAGS="--prefer-stable"
16
+ - LARAVEL_VERSION="^6.0" COMPOSER_FLAGS="--prefer-lowest"
17
+ - LARAVEL_VERSION="^6.0" COMPOSER_FLAGS="--prefer-stable"
16
18
- LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-lowest" MINIMUM_STABILITY="dev"
17
19
- LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-stable" MINIMUM_STABILITY="dev"
18
20
@@ -34,13 +36,9 @@ install:
34
36
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
35
37
36
38
script :
39
+ - vendor/bin/phpcs --runtime-set ignore_warnings_on_exit 1
37
40
- vendor/bin/phpunit
38
41
39
- branches :
40
- only :
41
- - master
42
- - develop
43
-
44
42
notifications :
45
43
email :
46
44
on_failure : change
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ All Notable changes to `sebastiaanluca/laravel-boolean-dates` will be documented
4
4
5
5
Updates should follow the [ Keep a CHANGELOG] ( http://keepachangelog.com/ ) principles.
6
6
7
- ## Unreleased
7
+ ## 3.0.0 (2019-09-06)
8
+
9
+ ### Added
10
+
11
+ - Added support for Laravel 6.0
8
12
9
13
## 2.0.2 (2019-03-08)
10
14
Original file line number Diff line number Diff line change 25
25
],
26
26
"require" : {
27
27
"php" : " ^7.2" ,
28
- "dms/phpunit-arraysubset-asserts" : " ^0.1.0" ,
29
- "laravel/framework" : " 5.8.*" ,
28
+ "laravel/framework" : " 5.8.*|^6.0" ,
30
29
"nesbot/carbon" : " ^1.22|^2.0"
31
30
},
32
31
"require-dev" : {
32
+ "dms/phpunit-arraysubset-asserts" : " ^0.1.0" ,
33
33
"kint-php/kint" : " ^3.1" ,
34
34
"mockery/mockery" : " ^1.2" ,
35
- "orchestra/testbench" : " 3.8.*" ,
36
- "phpunit/phpunit" : " ^8.0"
35
+ "orchestra/testbench" : " 3.8.*|^4.0" ,
36
+ "phpunit/phpunit" : " ^8.3" ,
37
+ "sebastiaanluca/php-codesniffer-ruleset" : " ^0.4.2"
37
38
},
38
39
"autoload" : {
39
40
"psr-4" : {
56
57
}
57
58
},
58
59
"scripts" : {
60
+ "composer-validate" : " @composer validate --no-check-all --strict --ansi" ,
61
+ "codesniffer-check" : " vendor/bin/phpcs --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1" ,
62
+ "codesniffer-fix" : " vendor/bin/phpcbf --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 || exit 0" ,
59
63
"test" : " vendor/bin/phpunit" ,
60
64
"test-lowest" : [
61
65
" composer update --prefer-lowest --prefer-dist --no-interaction --ansi" ,
64
68
"test-stable" : [
65
69
" composer update --prefer-stable --prefer-dist --no-interaction --ansi" ,
66
70
" @test"
71
+ ],
72
+ "check" : [
73
+ " @composer-validate" ,
74
+ " @codesniffer-check" ,
75
+ " @test"
67
76
]
68
- }
77
+ },
78
+ "minimum-stability" : " dev" ,
79
+ "prefer-stable" : true
69
80
}
81
+
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset >
3
+ <arg name =" basepath" value =" ." />
4
+
5
+ <file >./src</file >
6
+ <file >./tests</file >
7
+
8
+ <rule ref =" ./vendor/sebastiaanluca/php-codesniffer-ruleset/ruleset.xml" />
9
+ </ruleset >
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ trait HasBooleanDates
10
10
{
11
11
/**
12
12
* Initialize the trait.
13
+ *
14
+ * @return void
13
15
*/
14
16
public function initializeHasBooleanDates () : void
15
17
{
@@ -106,6 +108,8 @@ protected function getBooleanDate($key) : bool
106
108
/**
107
109
* @param string $key
108
110
* @param mixed $value
111
+ *
112
+ * @return void
109
113
*/
110
114
protected function setBooleanDate (string $ key , $ value ) : void
111
115
{
@@ -155,7 +159,7 @@ protected function getBooleanDateField($key) : string
155
159
}
156
160
157
161
/**
158
- * @param $value
162
+ * @param mixed $value
159
163
*
160
164
* @return string|null
161
165
*/
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
namespace SebastiaanLuca \BooleanDates \Tests ;
4
6
5
7
use Orchestra \Testbench \TestCase as BaseTestCase ;
8
10
class TestCase extends BaseTestCase
9
11
{
10
12
/**
11
- * @param $app
13
+ * @param \Illuminate\Foundation\Application $app
12
14
*
13
15
* @return array
14
16
*/
You can’t perform that action at this time.
0 commit comments