Skip to content

Commit 28e4274

Browse files
committed
Use Rule[] instead of generic array for return tags
1 parent c0800de commit 28e4274

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sabberworm/CSS/RuleSet/RuleSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getRules($mRule = null) {
107107

108108
/**
109109
* Override all the rules of this set.
110-
* @param array $aRules The rules to override with.
110+
* @param Rule[] $aRules The rules to override with.
111111
*/
112112
public function setRules(array $aRules) {
113113
$this->aRules = array();
@@ -120,7 +120,7 @@ public function setRules(array $aRules) {
120120
* Returns all rules matching the given pattern and returns them in an associative array with the rule’s name as keys. This method exists mainly for backwards-compatibility and is really only partially useful.
121121
* @param (string) $mRule pattern to search for. If null, returns all rules. if the pattern ends with a dash, all rules starting with the pattern are returned as well as one matching the pattern with the dash excluded. passing a Rule behaves like calling getRules($mRule->getRule()).
122122
* Note: This method loses some information: Calling this (with an argument of 'background-') on a declaration block like { background-color: green; background-color; rgba(0, 127, 0, 0.7); } will only yield an associative array containing the rgba-valued rule while @link{getRules()} would yield an indexed array containing both.
123-
* @return array Rules.
123+
* @return Rule[] Rules.
124124
*/
125125
public function getRulesAssoc($mRule = null) {
126126
$aResult = array();

0 commit comments

Comments
 (0)