File tree Expand file tree Collapse file tree 4 files changed +29
-15
lines changed Expand file tree Collapse file tree 4 files changed +29
-15
lines changed Original file line number Diff line number Diff line change 10
10
- uses : actions/checkout@v2
11
11
- uses : shivammathur/setup-php@v1
12
12
with :
13
- php-version : 7.4
13
+ php-version : 7.1
14
14
coverage : none
15
15
16
16
- run : composer create-project nette/code-checker temp/code-checker ^3 --no-progress
24
24
- uses : actions/checkout@v2
25
25
- uses : shivammathur/setup-php@v1
26
26
with :
27
- php-version : 7.4
27
+ php-version : 8.0
28
28
coverage : none
29
29
30
- - run : composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
31
- - run : php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml
30
+ - run : composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress --ignore-platform-reqs
31
+ - run : php temp/coding-standard/ecs check
Original file line number Diff line number Diff line change @@ -28,19 +28,18 @@ jobs:
28
28
29
29
30
30
- name : Nette Code Checker
31
- php : 7.4
32
31
install :
33
32
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
34
33
script :
35
34
- php temp/code-checker/code-checker --strict-types
36
35
37
36
38
37
- name : Nette Coding Standard
39
- php : 7.4
38
+ php : 8.0snapshot
40
39
install :
41
- - travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
40
+ - travis_retry composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress --ignore-platform-reqs
42
41
script :
43
- - php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml
42
+ - php temp/coding-standard/ecs check
44
43
45
44
46
45
- stage : Static Analysis (informative)
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * Rules for Nette Coding Standard
5
+ * https://github.com/nette/coding-standard
6
+ */
7
+
8
+ declare (strict_types=1 );
9
+
10
+
11
+ return function (Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator $ containerConfigurator ): void {
12
+ $ containerConfigurator ->import (PRESET_DIR . '/php71.php ' );
13
+
14
+ $ parameters = $ containerConfigurator ->parameters ();
15
+
16
+ $ parameters ->set ('skip ' , [
17
+ // constant NULL, FALSE
18
+ PhpCsFixer \Fixer \Casing \LowercaseConstantsFixer::class => [
19
+ 'src/PhpGenerator/Type.php ' ,
20
+ ],
21
+ ]);
22
+ };
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments