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 1313 fail-fast : false
1414 matrix :
1515 php :
16- - ' 7.2'
17- - ' 7.3'
1816 - ' 7.4'
1917
2018 steps :
Original file line number Diff line number Diff line change 2323 "irc" : " irc://irc.freenode.net/wikidata"
2424 },
2525 "require" : {
26- "php" : " >=7.2 " ,
26+ "php" : " >=7.4 " ,
2727 "data-values/data-values" : " ~3.0|~2.0|~1.0|~0.1" ,
2828 "serialization/serialization" : " ~4.0|~3.0"
2929 },
3030 "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 "
3333 },
3434 "autoload" : {
3535 "psr-4" : {
4747 " composer validate --no-interaction" ,
4848 " phpcs -p -s" ,
4949 " phpunit"
50+ ],
51+ "fix" : [
52+ " phpcbf"
5053 ]
54+ },
55+ "config" : {
56+ "allow-plugins" : {
57+ "dealerdirect/phpcodesniffer-composer-installer" : true
58+ }
5159 }
5260}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<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 >
57 <file >.</file >
68</ruleset >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function testGivenEmptyArray_isDeserializerForReturnsFalse() {
2929
3030 private function newDeserializer () {
3131 return new DataValueDeserializer ( [
32- 'boolean ' => function ( $ bool ) {
32+ 'boolean ' => static function ( $ bool ) {
3333 return new BooleanValue ( $ bool );
3434 },
3535 'number ' => NumberValue::class,
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function testWhenGivenDataValue_SerializeCallsToArray() {
7373 $ dataValue = $ this ->createMock ( DataValue::class );
7474 $ dataValue ->expects ( $ this ->once () )
7575 ->method ( 'toArray ' )
76- ->will ( $ this -> returnValue ( $ returnValue ) );
76+ ->willReturn ( $ returnValue );
7777
7878 $ this ->assertEquals ( $ returnValue , $ serializer ->serialize ( $ dataValue ) );
7979 }
You can’t perform that action at this time.
0 commit comments