Add missing return type hints
authorJoshua Rüsweg <josh@bastelstu.be>
Tue, 17 Apr 2018 17:46:43 +0000 (19:46 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Tue, 17 Apr 2018 17:46:43 +0000 (19:46 +0200)
See #2508

wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php

index d95cbc0737fa33532d6fe0dffef32c3a7d563e2a..cbc9ffd32ae0a50a141416fe043af11f31ab1870 100644 (file)
@@ -106,7 +106,7 @@ class ReactionType extends DatabaseObject {
         * 
         * @return      bool
         */
-       public function isPositive() {
+       public function isPositive(): bool {
                return $this->type == self::REACTION_TYPE_POSITIVE;
        }
        
@@ -115,7 +115,7 @@ class ReactionType extends DatabaseObject {
         *
         * @return      bool
         */
-       public function isNegative() {
+       public function isNegative(): bool {
                return $this->type == self::REACTION_TYPE_NEGATIVE;
        }
        
@@ -124,7 +124,7 @@ class ReactionType extends DatabaseObject {
         *
         * @return      bool
         */
-       public function isNeutral() {
+       public function isNeutral(): bool {
                return $this->type == self::REACTION_TYPE_NEUTRAL;
        }
 }