From ed164a354882320cd5e416fb3ac44377e9cf049e Mon Sep 17 00:00:00 2001 From: Hamish Date: Thu, 11 Jan 2024 08:24:45 +1300 Subject: [PATCH] Remove creation of dynamic property (#225) PHP deprecated Co-authored-by: hslater --- src/PropertyDefinitions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PropertyDefinitions.php b/src/PropertyDefinitions.php index cd62788..82b2eab 100644 --- a/src/PropertyDefinitions.php +++ b/src/PropertyDefinitions.php @@ -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' ); } }