Skip to content
Permalink
Browse files

ID#323: introduced type declaration for various classes.

  • Loading branch information...
Christian Achatz
Christian Achatz committed May 18, 2018
1 parent 11e8a71 commit 0941ceb49db270201293c06c5d8343f4433056d2
Showing with 3 additions and 3 deletions.
  1. +1 −1 tools/link/DefaultLinkScheme.php
  2. +1 −1 tools/link/LinkScheme.php
  3. +1 −1 tools/link/RewriteLinkScheme.php
@@ -120,7 +120,7 @@ protected function buildQueryString(array $query) {
return $queryString;
}
public function formatActionLink(Url $url, $namespace, $name, array $params = []) {
public function formatActionLink(Url $url, string $namespace, string $name, array $params = []) {
$url = $this->removeActionInstructions($url);
return $this->formatLinkInternal(
@@ -49,7 +49,7 @@ public function formatLink(Url $url);
*
* @return string The result url.
*/
public function formatActionLink(Url $url, $namespace, $name, array $params = []);
public function formatActionLink(Url $url, string $namespace, string $name, array $params = []);
public function setEncodeAmpersands($encode);
@@ -36,7 +36,7 @@
*/
class RewriteLinkScheme extends BasicLinkScheme implements LinkScheme {
public function formatActionLink(Url $url, $namespace, $name, array $params = []) {
public function formatActionLink(Url $url, string $namespace, string $name, array $params = []) {
return $this->formatLink(
$url->setQueryParameter(
$this->formatActionIdentifier($namespace, $name, true),

0 comments on commit 0941ceb

Please sign in to comment.
You can’t perform that action at this time.