File tree 3 files changed +58
-1
lines changed
src/Domain/Contracts/Model
3 files changed +58
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ branches : [ 'main' ]
6
+ pull_request :
7
+ types : [ 'opened', 'synchronize', 'reopened' ]
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ php-version : [ '8.1', '8.2', '8.3' ]
16
+
17
+ steps :
18
+ - name : Checkout source code
19
+ uses : actions/checkout@v2
20
+ with :
21
+ fetch-depth : 0
22
+
23
+ - name : Set up PHP ${{ matrix.php-version }}
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : ${{ matrix.php-version }}
27
+ coverage : xdebug
28
+ tools : composer:v2
29
+
30
+ - name : Cache dependencies
31
+ uses : actions/cache@v2
32
+ with :
33
+ path : ~/.composer/cache
34
+ key : php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
35
+ restore-keys : php-${{ matrix.php-version }}-composer-
36
+
37
+ - name : Validate composer.json and composer.lock
38
+ run : composer validate
39
+
40
+ - name : Install dependencies
41
+ if : steps.composer-cache.outputs.cache-hit != 'true'
42
+ run : composer install --prefer-dist --no-progress --no-suggest
43
+
44
+ - name : Execute Static Code analysis
45
+ run : composer analyse
Original file line number Diff line number Diff line change 13
13
"require" : {
14
14
"php" : " ^8.1"
15
15
},
16
+ "require-dev" : {
17
+ "phpstan/phpstan" : " ^1.0" ,
18
+ "phpstan/extension-installer" : " ^1.3"
19
+ },
16
20
"autoload" : {
17
21
"psr-4" : {
18
22
"ComplexHeart\\ " : " src/"
19
23
}
24
+ },
25
+ "scripts" : {
26
+ "analyse" : " vendor/bin/phpstan analyse src --no-progress --level=9"
27
+ },
28
+ "config" : {
29
+ "allow-plugins" : {
30
+ "phpstan/extension-installer" : true
31
+ }
20
32
}
21
33
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ interface ValueObject
15
15
/**
16
16
* Return the attribute values.
17
17
*
18
- * @return array
18
+ * @return array<string, mixed>
19
19
*/
20
20
public function values (): array ;
21
21
You can’t perform that action at this time.
0 commit comments