From 3d77fca6394b81cafa3d17ec79e4db4b270267c7 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 27 Jul 2018 16:05:14 +0200 Subject: [PATCH] Remove scalar type hints for parameters See #2720 --- wcfsetup/install/files/lib/system/html/toc/HtmlToc.class.php | 2 +- .../install/files/lib/system/html/toc/HtmlTocItem.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/toc/HtmlToc.class.php b/wcfsetup/install/files/lib/system/html/toc/HtmlToc.class.php index 07fb5af4f5..f7a25c8cce 100644 --- a/wcfsetup/install/files/lib/system/html/toc/HtmlToc.class.php +++ b/wcfsetup/install/files/lib/system/html/toc/HtmlToc.class.php @@ -19,7 +19,7 @@ class HtmlToc { * @param string $idPrefix prefix for all generated ids, must not end with a delimiter * @return string the HTML of the generated table of contents or an empty string if there are too few headings */ - public static function forMessage(\DOMDocument $document, string $idPrefix) { + public static function forMessage(\DOMDocument $document, $idPrefix) { $titleRegex = new Regex('[^\p{L}\p{N}]+', Regex::UTF_8); // fetch all headings in their order of appearance diff --git a/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php b/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php index a8a4d2ef46..263249062b 100644 --- a/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php +++ b/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php @@ -31,7 +31,7 @@ class HtmlTocItem implements \Countable, \RecursiveIterator { /** @var HtmlTocItem */ private $parent; - public function __construct(int $level, string $id, string $title) { + public function __construct($level, $id, $title) { $this->level = $level; $this->id = $id; $this->title = $title; @@ -65,7 +65,7 @@ class HtmlTocItem implements \Countable, \RecursiveIterator { $child->setParent($this); } - public function setDepth(int $depth) { + public function setDepth($depth) { $this->depth = $depth; } -- 2.20.1