Skip to content

Commit 67a6e95

Browse files
committed
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.
1 parent 0309c90 commit 67a6e95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Rule/Rule.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Rule implements Renderable, Commentable
2424
private $sRule;
2525

2626
/**
27-
* @var RuleValueList|null
27+
* @var RuleValueList|string|null
2828
*/
2929
private $mValue;
3030

@@ -171,15 +171,15 @@ public function getRule()
171171
}
172172

173173
/**
174-
* @return RuleValueList|null
174+
* @return RuleValueList|string|null
175175
*/
176176
public function getValue()
177177
{
178178
return $this->mValue;
179179
}
180180

181181
/**
182-
* @param RuleValueList|null $mValue
182+
* @param RuleValueList|string|null $mValue
183183
*
184184
* @return void
185185
*/

0 commit comments

Comments
 (0)