Skip to content

Commit b43d0c0

Browse files
committed
Update README.md
Remove old variant of the `Sabberworm\CSS\Parser` constructor.
1 parent ceb263c commit b43d0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add php-css-parser to your composer.json
1919

2020
To use the CSS Parser, create a new instance. The constructor takes the following form:
2121

22-
new Sabberworm\CSS\Parser($sText, $sDefaultCharset = 'utf-8');
22+
new Sabberworm\CSS\Parser($sText, $oSettings = Sabberworm\CSS\Settings::create()->withDefaultCharset('utf-8'));
2323

2424
The charset is used only if no @charset declaration is found in the CSS file.
2525

0 commit comments

Comments
 (0)