diff --git a/composer.json b/composer.json index 7c4af8b9f..9811f68f9 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "mediawiki/mediawiki-codesniffer": "39.0.0", - "mediawiki/mediawiki-phan-config": "0.11.1", + "mediawiki/mediawiki-phan-config": "0.12.0", "mediawiki/minus-x": "1.1.1", "php-parallel-lint/php-console-highlighter": "1.0.0", "php-parallel-lint/php-parallel-lint": "1.3.2" diff --git a/src/TexVC/Nodes/Matrix.php b/src/TexVC/Nodes/Matrix.php index c5df5dd4e..d161f1be2 100644 --- a/src/TexVC/Nodes/Matrix.php +++ b/src/TexVC/Nodes/Matrix.php @@ -49,7 +49,7 @@ class Matrix extends TexNode { } private function renderMatrix( $matrix ) { - $mapped = array_map( 'self::renderLine', $matrix->args ); + $mapped = array_map( [ self::class, 'renderLine' ], $matrix->args ); return implode( '\\\\', $mapped ); } @@ -79,7 +79,7 @@ class Matrix extends TexNode { return $a; } - $reduced = array_reduce( $a, 'self::reduceCallback', [] ); + $reduced = array_reduce( $a, [ self::class, 'reduceCallback' ], [] ); return $reduced; }