JeroenDeDauw / ParamProcessor

Declarative parameter processing library
https://entropywins.wtf
Other
20 stars 4 forks source link

Fix Invalid argument supplied for foreach #14

Closed mwjames closed 8 years ago

mwjames commented 8 years ago

By simply adding<info /> to a page you get:

Warning: Invalid argument supplied for foreach() in ...\vendor\param-processor\param-processor\src\Processor.php on line 315

Notice: Undefined index: message in ...\extensions\SemanticMediaWiki\src\ParserFunctions\InfoParserFunction.php on line 35

Fatal error: Call to a member function getValue() on null in ...\extensions\SemanticMediaWiki\src\ParserFunctions\InfoParserFunction.php on line 35
mwjames commented 8 years ago

http://sandbox.semantic-mediawiki.org/w/index.php?title=ParamProcessorEmpty

mwjames commented 8 years ago

Fatal error: Call to a member function getValue() on null in ...\extensions\SemanticMediaWiki\src\ParserFunctions\InfoParserFunction.php on line 35

Fixed with https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1608

JeroenDeDauw commented 8 years ago

Thanks

JeroenDeDauw commented 8 years ago

Released as 1.2.5