aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/editpage
diff options
context:
space:
mode:
authorAndre Klapper <a9016009@gmx.de>2024-10-23 17:25:02 +0200
committerAndre Klapper <a9016009@gmx.de>2024-10-23 17:25:02 +0200
commitda0a395efa7847916371f9c0a6b271faa022ff59 (patch)
tree2ca0d6deab7ea674ede468e6fb88fddbdb89d528 /tests/phpunit/unit/includes/editpage
parent48d479a4801d605949510940adca258f8d018f63 (diff)
downloadmediawikicore-da0a395efa7847916371f9c0a6b271faa022ff59.tar.gz
mediawikicore-da0a395efa7847916371f9c0a6b271faa022ff59.zip
Use explicit nullable type on parameter arguments
Implicitly marking parameter $... as nullable is deprecated in php8.4, the explicit nullable type must be used instead. Followup to e662614f, using PHPStan. Bug: T376276 Change-Id: I60d639b042b537bf2f531cc132f1b75a66b85acb
Diffstat (limited to 'tests/phpunit/unit/includes/editpage')
-rw-r--r--tests/phpunit/unit/includes/editpage/Constraint/ContentModelChangeConstraintTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/unit/includes/editpage/Constraint/ContentModelChangeConstraintTest.php b/tests/phpunit/unit/includes/editpage/Constraint/ContentModelChangeConstraintTest.php
index 7e9b8e7b82ca..61b5fbfab7f6 100644
--- a/tests/phpunit/unit/includes/editpage/Constraint/ContentModelChangeConstraintTest.php
+++ b/tests/phpunit/unit/includes/editpage/Constraint/ContentModelChangeConstraintTest.php
@@ -88,7 +88,7 @@ class ContentModelChangeConstraintTest extends MediaWikiUnitTestCase {
$performer = $this->mockRegisteredAuthority( function (
string $permission,
- PageIdentity $page = null
+ ?PageIdentity $page = null
) use ( $title ) {
if ( $permission === 'editcontentmodel' ) {
if ( $page ) {