mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I12c3660e74e42937f6cfb31ec4771a67d8651f42
This commit is contained in:
parent
4adce79b8d
commit
86246f0172
|
@ -2,6 +2,7 @@
|
|||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
|
||||
</rule>
|
||||
<file>.</file>
|
||||
<arg name="extensions" value="php,php5,inc"/>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "26.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.6.1"
|
||||
|
|
|
@ -6,7 +6,7 @@ use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|||
* @covers CaptchaAuthenticationRequest
|
||||
*/
|
||||
class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
||||
public function setUp() {
|
||||
public function setUp() : void {
|
||||
parent::setUp();
|
||||
$this->setMwGlobals( [
|
||||
'wgCaptchaClass' => SimpleCaptcha::class,
|
||||
|
|
|
@ -9,7 +9,7 @@ use Wikimedia\TestingAccessWrapper;
|
|||
* @group Database
|
||||
*/
|
||||
class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {
|
||||
public function setUp() {
|
||||
public function setUp() : void {
|
||||
parent::setUp();
|
||||
$this->setMwGlobals( [
|
||||
'wgCaptchaClass' => SimpleCaptcha::class,
|
||||
|
@ -28,7 +28,7 @@ class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
public function tearDown() : void {
|
||||
parent::tearDown();
|
||||
// make sure $wgCaptcha resets between tests
|
||||
TestingAccessWrapper::newFromClass( ConfirmEditHooks::class )->instanceCreated = false;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
class QuestyCaptchaTest extends MediaWikiTestCase {
|
||||
|
||||
public function setUp() {
|
||||
public function setUp() : void {
|
||||
parent::setUp();
|
||||
|
||||
$this->mergeMwGlobalArrayValue(
|
||||
|
|
|
@ -11,7 +11,7 @@ class CaptchaTest extends MediaWikiTestCase {
|
|||
/** @var ScopedCallback[] */
|
||||
private $hold = [];
|
||||
|
||||
public function tearDown() {
|
||||
public function tearDown() : void {
|
||||
// Destroy any ScopedCallbacks being held
|
||||
$this->hold = [];
|
||||
parent::tearDown();
|
||||
|
|
Loading…
Reference in a new issue