diff --git a/extension.json b/extension.json index 9a32da609..e2b19604d 100644 --- a/extension.json +++ b/extension.json @@ -15,7 +15,7 @@ "license-name": "GPL-2.0-or-later", "type": "parserhook", "requires": { - "MediaWiki": ">= 1.35.0" + "MediaWiki": ">= 1.38.0" }, "MessagesDirs": { "Cite": [ diff --git a/src/Cite.php b/src/Cite.php index 3a0230a9e..f55ee300b 100644 --- a/src/Cite.php +++ b/src/Cite.php @@ -299,7 +299,7 @@ class Cite { // Tag every page where Book Referencing has been used, whether or not the ref tag is valid. // This code and the page property will be removed once the feature is stable. See T237531. if ( array_key_exists( self::BOOK_REF_ATTRIBUTE, $argv ) ) { - $parser->getOutput()->setProperty( self::BOOK_REF_PROPERTY, true ); + $parser->getOutput()->setPageProperty( self::BOOK_REF_PROPERTY, true ); } $status = $this->parseArguments( diff --git a/tests/phpunit/unit/CiteUnitTest.php b/tests/phpunit/unit/CiteUnitTest.php index c4f686eb0..a4c121c99 100644 --- a/tests/phpunit/unit/CiteUnitTest.php +++ b/tests/phpunit/unit/CiteUnitTest.php @@ -657,7 +657,7 @@ class CiteUnitTest extends \MediaWikiUnitTestCase { $mockOutput = $this->createMock( ParserOutput::class ); // This will be our most important assertion. $mockOutput->expects( $this->once() ) - ->method( 'setProperty' ) + ->method( 'setPageProperty' ) ->with( Cite::BOOK_REF_PROPERTY, true ); $mockParser = $this->createMock( Parser::class );