This repository was archived by the owner on Mar 6, 2022. It is now read-only.
File tree 4 files changed +12
-7
lines changed
4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 43
43
44
44
-
45
45
name : " Run friendsofphp/php-cs-fixer"
46
- run : " vendor/bin/php-cs-fixer fix --dry-run --diff --verbose"
46
+ run : " vendor/bin/php-cs-fixer fix --dry-run --diff --verbose --allow-risky=yes "
47
47
phpstan :
48
48
name : " PHPStan (${{ matrix.php-version }})"
49
49
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ $finder = PhpCsFixer\Finder::create()
4
4
->in ('lib ' )
5
5
->in ('tests ' )
6
6
->exclude ([
7
- 'tests/ Workspace '
7
+ 'Workspace ' ,
8
8
])
9
9
;
10
10
@@ -13,6 +13,11 @@ return PhpCsFixer\Config::create()
13
13
'@PSR2 ' => true ,
14
14
'no_unused_imports ' => true ,
15
15
'array_syntax ' => ['syntax ' => 'short ' ],
16
+ 'void_return ' => true ,
17
+ 'ordered_class_elements ' => true ,
18
+ 'single_quote ' => true ,
19
+ 'heredoc_indentation ' => true ,
20
+ 'global_namespace_import ' => true ,
16
21
])
17
22
->setFinder ($ finder )
18
23
;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class CompletionExtension implements Extension
35
35
/**
36
36
* {@inheritDoc}
37
37
*/
38
- public function configure (Resolver $ schema )
38
+ public function configure (Resolver $ schema ): void
39
39
{
40
40
$ schema ->setDefaults ([
41
41
self ::PARAM_DEDUPE => true ,
@@ -52,7 +52,7 @@ public function configure(Resolver $schema)
52
52
/**
53
53
* {@inheritDoc}
54
54
*/
55
- public function load (ContainerBuilder $ container )
55
+ public function load (ContainerBuilder $ container ): void
56
56
{
57
57
$ this ->registerCompletion ($ container );
58
58
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function setUp(): void
46
46
$ this ->formatter1 = $ this ->prophesize (Formatter::class);
47
47
}
48
48
49
- public function testCreatesChainedCompletor ()
49
+ public function testCreatesChainedCompletor (): void
50
50
{
51
51
$ document = TextDocumentBuilder::create (self ::EXAMPLE_SOURCE )->build ();
52
52
$ this ->completor1 ->complete (
@@ -67,7 +67,7 @@ public function testCreatesChainedCompletor()
67
67
$ this ->assertEquals (self ::EXAMPLE_SUGGESTION , $ results [0 ]->name ());
68
68
}
69
69
70
- public function testCreatesFormatterFromEitherSingleFormatterOrArray ()
70
+ public function testCreatesFormatterFromEitherSingleFormatterOrArray (): void
71
71
{
72
72
$ object = new stdClass ();
73
73
$ this ->formatter1 ->canFormat ($ object )->shouldBeCalledTimes (3 )->willReturn (false );
@@ -77,7 +77,7 @@ public function testCreatesFormatterFromEitherSingleFormatterOrArray()
77
77
$ this ->assertEquals (false , $ canFormat );
78
78
}
79
79
80
- public function testCreatesSignatureHelper ()
80
+ public function testCreatesSignatureHelper (): void
81
81
{
82
82
$ document = TextDocumentBuilder::create (self ::EXAMPLE_SOURCE )->build ();
83
83
$ this ->signatureHelper1 ->signatureHelp (
You can’t perform that action at this time.
0 commit comments