mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-27 17:50:53 +00:00
build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: Ied844c3ae930a03ca49e36e9a9e9d0c008d2634c
This commit is contained in:
parent
d031b380db
commit
bbb00c0f2d
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/mediawiki-codesniffer": "41.0.0",
|
"mediawiki/mediawiki-codesniffer": "43.0.0",
|
||||||
"mediawiki/mediawiki-phan-config": "0.14.0",
|
"mediawiki/mediawiki-phan-config": "0.14.0",
|
||||||
"mediawiki/minus-x": "1.1.1",
|
"mediawiki/minus-x": "1.1.1",
|
||||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||||
|
@ -18,5 +18,10 @@
|
||||||
],
|
],
|
||||||
"phan": "phan -d . --long-progress-bar",
|
"phan": "phan -d . --long-progress-bar",
|
||||||
"phpcs": "phpcs -sp --cache"
|
"phpcs": "phpcs -sp --cache"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"allow-plugins": {
|
||||||
|
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,7 +151,7 @@ class PageImages implements
|
||||||
|
|
||||||
$file = self::$cache->getWithSetCallback(
|
$file = self::$cache->getWithSetCallback(
|
||||||
CacheKeyHelper::getKeyForPage( $title ),
|
CacheKeyHelper::getKeyForPage( $title ),
|
||||||
fn() => $this->fetchPageImage( $title )
|
fn () => $this->fetchPageImage( $title )
|
||||||
);
|
);
|
||||||
|
|
||||||
// Cast false to null
|
// Cast false to null
|
||||||
|
|
|
@ -105,7 +105,7 @@ class PageImagesTest extends MediaWikiIntegrationTestCase {
|
||||||
] );
|
] );
|
||||||
$outputPage->expects( $this->once() )
|
$outputPage->expects( $this->once() )
|
||||||
->method( 'addMeta' )
|
->method( 'addMeta' )
|
||||||
->with( $this->equalTo( 'og:image' ), $this->equalTo( $expected ) );
|
->with( 'og:image', $expected );
|
||||||
|
|
||||||
$skinTemplate = new SkinTemplate();
|
$skinTemplate = new SkinTemplate();
|
||||||
$this->newPageImages()->onBeforePageDisplay( $outputPage, $skinTemplate );
|
$this->newPageImages()->onBeforePageDisplay( $outputPage, $skinTemplate );
|
||||||
|
|
Loading…
Reference in a new issue