From: <var...@us...> - 2023-07-14 11:54:57
|
Revision: 11057 http://sourceforge.net/p/phpwiki/code/11057 Author: vargenau Date: 2023-07-14 11:54:56 +0000 (Fri, 14 Jul 2023) Log Message: ----------- lib: PHP 7: add types for function arguments and return Modified Paths: -------------- trunk/lib/Template.php trunk/lib/stdlib.php Modified: trunk/lib/Template.php =================================================================== --- trunk/lib/Template.php 2023-07-14 11:37:03 UTC (rev 11056) +++ trunk/lib/Template.php 2023-07-14 11:54:56 UTC (rev 11057) @@ -37,7 +37,7 @@ * @param WikiRequest $request * @param array $args */ - public function __construct(string $name, WikiRequest &$request, array $args = array()) + public function __construct(string $name, &$request, array $args = array()) { global $WikiTheme; Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2023-07-14 11:37:03 UTC (rev 11056) +++ trunk/lib/stdlib.php 2023-07-14 11:54:56 UTC (rev 11057) @@ -308,7 +308,7 @@ * @param string $text The text. * @return XmlContent. */ -function PossiblyGlueIconToText(string $proto_or_url, string $text): XmlContent +function PossiblyGlueIconToText(string $proto_or_url, string $text) { global $request, $WikiTheme; if ($request->getPref('noLinkIcons')) { @@ -402,7 +402,7 @@ * @param string $linktext Text to be displayed as link. * @return HtmlElement HtmlElement object that contains data to construct an html link. */ -function LinkURL(string $url, string $linktext = ''): HtmlElement +function LinkURL(string $url, string $linktext = '') { // FIXME: Is this needed (or sufficient?) if (!IsSafeURL($url)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |