SemanticMediaWiki / SemanticExtraSpecialProperties

Provides extra special properties to Semantic MediaWiki.
https://www.mediawiki.org/wiki/Extension:Semantic_Extra_Special_Properties
Other
26 stars 29 forks source link

PHP 8.1: Deprecated: Return type of SESP\PropertyDefinitions::getIterator() #222

Closed jaideraf closed 11 months ago

jaideraf commented 1 year ago

Setup and configuration

Issue

This message appears on the main page after installation:

Deprecated:  Return type of SESP\PropertyDefinitions::getIterator() should either be compatible with 
IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to 
temporarily suppress the notice in /src/PropertyDefinitions.php on line 195

Here is the spot: https://github.com/SemanticMediaWiki/SemanticExtraSpecialProperties/blob/f6df07ed4dc6814584fb4e7129d3e384bdb8ffb1/src/PropertyDefinitions.php#L195

krabina commented 1 year ago

see https://phabricator.wikimedia.org/T336892

krabina commented 11 months ago

Fixed by https://github.com/SemanticMediaWiki/SemanticExtraSpecialProperties/pull/224