From 2e928ecb920ced81a56d056761f800d10d2e22bd Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 2 Jul 2021 22:03:04 +0200 Subject: [PATCH] Add type annotations for `AtRule` --- src/Property/AtRule.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Property/AtRule.php b/src/Property/AtRule.php index 4cc95352..9536ff5e 100644 --- a/src/Property/AtRule.php +++ b/src/Property/AtRule.php @@ -7,10 +7,19 @@ interface AtRule extends Renderable, Commentable { - // Since there are more set rules than block rules, - // we’re whitelisting the block rules and have anything else be treated as a set rule. + /** + * Since there are more set rules than block rules, + * we’re whitelisting the block rules and have anything else be treated as a set rule. + * + * @var string + */ const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values'; - // … and more font-specific ones (to be used inside font-feature-values) + + /** + * … and more font-specific ones (to be used inside font-feature-values) + * + * @var string + */ const SET_RULES = 'font-face/counter-style/page/swash/styleset/annotation'; /**