File tree Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 13
13
fail-fast : false
14
14
matrix :
15
15
php :
16
- - ' 7.2'
17
- - ' 7.3'
18
16
- ' 7.4'
19
17
20
18
steps :
Original file line number Diff line number Diff line change 23
23
"irc" : " irc://irc.freenode.net/wikidata"
24
24
},
25
25
"require" : {
26
- "php" : " >=7.2 " ,
26
+ "php" : " >=7.4 " ,
27
27
"data-values/data-values" : " ~3.0|~2.0|~1.0|~0.1" ,
28
28
"serialization/serialization" : " ~4.0|~3.0"
29
29
},
30
30
"require-dev" : {
31
- "phpunit/phpunit " : " ~8.5 " ,
32
- "wikibase/wikibase-codesniffer " : " ^1.2.0 "
31
+ "mediawiki/mediawiki-codesniffer " : " 45.0.0 " ,
32
+ "phpunit/phpunit " : " ~8.5 "
33
33
},
34
34
"autoload" : {
35
35
"psr-4" : {
47
47
" composer validate --no-interaction" ,
48
48
" phpcs -p -s" ,
49
49
" phpunit"
50
+ ],
51
+ "fix" : [
52
+ " phpcbf"
50
53
]
54
+ },
55
+ "config" : {
56
+ "allow-plugins" : {
57
+ "dealerdirect/phpcodesniffer-composer-installer" : true
58
+ }
51
59
}
52
60
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<ruleset >
3
- <rule ref =" ./vendor/wikibase/wikibase-codesniffer/Wikibase" />
4
-
3
+ <rule ref =" ./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" >
4
+ <exclude name =" MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
5
+ <exclude name =" MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
6
+ </rule >
5
7
<file >.</file >
6
8
</ruleset >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function testGivenEmptyArray_isDeserializerForReturnsFalse() {
29
29
30
30
private function newDeserializer () {
31
31
return new DataValueDeserializer ( [
32
- 'boolean ' => function ( $ bool ) {
32
+ 'boolean ' => static function ( $ bool ) {
33
33
return new BooleanValue ( $ bool );
34
34
},
35
35
'number ' => NumberValue::class,
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function testWhenGivenDataValue_SerializeCallsToArray() {
73
73
$ dataValue = $ this ->createMock ( DataValue::class );
74
74
$ dataValue ->expects ( $ this ->once () )
75
75
->method ( 'toArray ' )
76
- ->will ( $ this -> returnValue ( $ returnValue ) );
76
+ ->willReturn ( $ returnValue );
77
77
78
78
$ this ->assertEquals ( $ returnValue , $ serializer ->serialize ( $ dataValue ) );
79
79
}
You can’t perform that action at this time.
0 commit comments