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
Removed the type hint mixed as it is not compatible with PHP 7.4.
Added #[\ReturnTypeWillChange] to methods that return mixed for PHP 8.1 compatibility.
Fixed some docblock issues.
Updated usage of `str...` functions to be `mb_str...`.
Fixed issue in `value::minify()` where if the `decimalplaces` setting was false it would be treated as `0`.
Added tests.
Copy file name to clipboardExpand all lines: src/tokens/document.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ public function minify(array $minify) : void {
80
80
* Compile the property to a string
81
81
*
82
82
* @param array $options An array of compilation options
83
-
* @return void
83
+
* @return string The compiled document
84
84
*/
85
85
publicfunctioncompile(array$options) : string {
86
86
$b = $options['style'] !== 'minify';
@@ -102,7 +102,7 @@ public function compile(array $options) : string {
102
102
* @param array|string $hasProp A string or array specifying the properties that any rules must contain
103
103
* @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
104
104
* @param bool $exact Denotes whether to match selectors exactly, if false, selectors will be matched from the left
0 commit comments