mediawiki-extensions-PageIm.../tests/phpunit/ApiQueryPageImagesProxyMock.php
Umherirrender 82654e0344 tests: Declare class property in ApiQueryPageImagesProxyMock
Creation of dynamic property
PageImages\Tests\ApiQueryPageImagesProxyMock::$pageSet is deprecated in
php8.2

Change-Id: I9ce28b6126638ff3b7bdca6cbc04080448aabc0c
2023-12-15 14:58:05 +01:00

27 lines
457 B
PHP

<?php
namespace PageImages\Tests;
use ApiPageSet;
use PageImages\ApiQueryPageImages;
class ApiQueryPageImagesProxyMock extends ApiQueryPageImages {
private ApiPageSet $pageSet;
/** @inheritDoc */
public function __construct( ApiPageSet $pageSet ) {
$this->pageSet = $pageSet;
}
/** @inheritDoc */
public function getPageSet() {
return $this->pageSet;
}
/** @inheritDoc */
public function getTitles() {
return parent::getTitles();
}
}