File tree Expand file tree Collapse file tree 2 files changed +32
-15
lines changed Expand file tree Collapse file tree 2 files changed +32
-15
lines changed Original file line number Diff line number Diff line change 1
- name : Run tests
1
+ name : Run checks
2
2
3
3
on :
4
4
push :
7
7
branches : [ master ]
8
8
9
9
jobs :
10
- build :
11
- name : PHP ${{ matrix.php-versions }} Test
10
+ test :
11
+ name : PHP ${{ matrix.php-versions }} Test ${{ matrix.composer-flags }}
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
15
php-versions : ['7.1', '7.2', '7.3']
16
+ composer-flags : ['', '--prefer-lowest']
16
17
steps :
17
- - uses : actions/checkout@v2
18
- - name : Setup PHP
19
- uses : shivammathur/setup-php@v2
20
- with :
21
- php-version : ${{ matrix.php-versions }}
22
- - name : Validate composer.json and composer.lock
23
- run : composer validate
24
- - name : Install dependencies
25
- run : composer install --prefer-dist --no-progress --no-suggest
26
- - name : Run test suite
27
- run : composer test
18
+ - uses : actions/checkout@v2
19
+ - name : Setup PHP
20
+ uses : shivammathur/setup-php@v2
21
+ with :
22
+ php-version : ${{ matrix.php-versions }}
23
+ - name : Validate composer.json and composer.lock
24
+ run : composer validate
25
+ - name : Install dependencies
26
+ run : composer update --prefer-dist --no-progress --no-suggest --prefer-stable ${{ matrix.composer-flags }}
27
+ - name : Run test suite
28
+ run : composer test
29
+ quality :
30
+ name : Quality checks
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v2
34
+ - name : Setup PHP
35
+ uses : shivammathur/setup-php@v2
36
+ with :
37
+ php-version : 7.1
38
+ - name : Install dependencies
39
+ run : composer install --prefer-dist --no-progress --no-suggest
40
+ - name : run checks
41
+ run : composer check
Original file line number Diff line number Diff line change 9
9
10
10
class ViolationListRenderer
11
11
{
12
- /** @var ConstraintViolationListInterface */
12
+ /** @var ConstraintViolationListInterface<ConstraintViolationInterface> */
13
13
private $ violationList ;
14
14
15
+ /**
16
+ * @param ConstraintViolationListInterface<ConstraintViolationInterface> $violations
17
+ */
15
18
public function __construct (ConstraintViolationListInterface $ violations )
16
19
{
17
20
$ this ->violationList = $ violations ;
You can’t perform that action at this time.
0 commit comments