From 67a6e95f8ad2c9c3d8d745f1943eda8da81383a4 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 16 Dec 2021 19:56:19 +0100 Subject: [PATCH] Also allow string values for rules Rules can have string values, and the type annotations should allow this to avoid type analysis warnings in code using this library. --- src/Rule/Rule.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rule/Rule.php b/src/Rule/Rule.php index c1ea6df7..2e8163ed 100644 --- a/src/Rule/Rule.php +++ b/src/Rule/Rule.php @@ -24,7 +24,7 @@ class Rule implements Renderable, Commentable private $sRule; /** - * @var RuleValueList|null + * @var RuleValueList|string|null */ private $mValue; @@ -171,7 +171,7 @@ public function getRule() } /** - * @return RuleValueList|null + * @return RuleValueList|string|null */ public function getValue() { @@ -179,7 +179,7 @@ public function getValue() } /** - * @param RuleValueList|null $mValue + * @param RuleValueList|string|null $mValue * * @return void */