You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated type hints to correct types where #[\ReturnTypeWillChange] as the software now only supports PHP 8.0+.
Added type hints where `mixed` is required.
Added union type hints on arguments and return types where missing.
Commented out new code that is not working yet.
@@ -488,35 +484,35 @@ public function save(string $file = null, array $options = []) {
488
484
return$css;
489
485
}
490
486
491
-
publicfunctioncollection(array$rules) {
492
-
$this->document = newdocument($this, $rules);
493
-
}
494
-
495
-
/**
496
-
* Find rules in the document that match the specified criteria
497
-
*
498
-
* @param string $selector A string specifying the selectors to match, comma separate multiple selectors
499
-
* @param array|string $hasProp A string or array specifying the properties that any rules must contain
500
-
* @param array $media An array specifying how any media queries should be match, where the key is the property and the key the value. 'max-width' will match any rules where the value is lower that that specified, 'min-width' the value must be higher. Use 'media' to specify the media type
501
-
* @param bool $exact Denotes whether to match selectors exactly, if false, selectors will be matched from the left
// * Find rules in the document that match the specified criteria
493
+
// *
494
+
// * @param string $selector A string specifying the selectors to match, comma separate multiple selectors
495
+
// * @param array|string $hasProp A string or array specifying the properties that any rules must contain
496
+
// * @param array $media An array specifying how any media queries should be match, where the key is the property and the key the value. 'max-width' will match any rules where the value is lower that that specified, 'min-width' the value must be higher. Use 'media' to specify the media type
497
+
// * @param bool $exact Denotes whether to match selectors exactly, if false, selectors will be matched from the left
498
+
// * @return cssdoc A CSSdoc object
499
+
// */
500
+
// public function find(?string $selector, $hasProp = null, array $media = [], bool $exact = true) : cssdoc {
@@ -101,15 +101,15 @@ public function compile(array $options) : string {
101
101
* @param array|string $hasProp A string or array specifying the properties that any rules must contain
102
102
* @param array $media An array specifying how any media queries should be match, where the key is the property and the key the value. 'max-width' will match any rules where the value is lower that that specified, 'min-width' the value must be higher. Use 'media' to specify the media type
103
103
* @param bool $exact Denotes whether to match selectors exactly, if false, selectors will be matched from the left
0 commit comments