Remove creation of dynamic property (#225)

PHP deprecated

Co-authored-by: hslater <hamish.slater@hallowelt.com>
这个提交包含在:
Hamish 2024-01-11 08:24:45 +13:00 提交者 GitHub
父节点 37d3bd4769
当前提交 ed164a3548
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -55,10 +55,10 @@ class PropertyDefinitions implements IteratorAggregate {
public function __construct( LabelFetcher $labelFetcher, $propertyDefinitionFile = '' ) {
$this->labelFetcher = $labelFetcher;
$this->propertyDefinitionFile = $propertyDefinitionFile;
$this->cfg = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'sespg' );
$cfg = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'sespg' );
if ( $this->propertyDefinitionFile === '' ) {
$this->propertyDefinitionFile = $this->cfg->get( 'DefinitionsFile' );
$this->propertyDefinitionFile = $cfg->get( 'DefinitionsFile' );
}
}