mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 15:36:47 +00:00
Use explicit nullable type on parameter arguments (for PHP 8.4)
Implicitly marking parameter $... as nullable is deprecated in PHP 8.4. The explicit nullable type must be used instead. Bug: T376276 Change-Id: Ibd54adb359d2993663db6453e83245d1335ccf63
This commit is contained in:
parent
2a1ac38ea9
commit
11ab44151f
|
@ -730,7 +730,7 @@ class TemplateDataBlobTest extends MediaWikiIntegrationTestCase {
|
||||||
* @param stdClass $actual
|
* @param stdClass $actual
|
||||||
* @param string|null $message
|
* @param string|null $message
|
||||||
*/
|
*/
|
||||||
private function assertStrictJsonEquals( string $expected, stdClass $actual, string $message = null ): void {
|
private function assertStrictJsonEquals( string $expected, stdClass $actual, ?string $message = null ): void {
|
||||||
// Lazy recursive strict comparison: Serialise to JSON and compare that
|
// Lazy recursive strict comparison: Serialise to JSON and compare that
|
||||||
// Sort first to ensure key-order
|
// Sort first to ensure key-order
|
||||||
$expected = json_decode( $expected, /* assoc = */ true );
|
$expected = json_decode( $expected, /* assoc = */ true );
|
||||||
|
|
Loading…
Reference in a new issue