Skip to content

Commit 90ca871

Browse files
authored
[TASK] Remove Parser::setCharset/getCharset (#808)
These methods were deprecated in version 8.7.0. Fixes #687
1 parent c7c610c commit 90ca871

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Please also have a look at our
3838

3939
### Removed
4040

41+
- Remove `Parser::setCharset/getCharset` (#808)
4142
- Remove `Rule::getValues()` (#582)
4243
- Remove `Rule::setValues()` (#562)
4344
- Remove `Document::getAllSelectors()` (#561)

src/Parser.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,6 @@ public function __construct($sText, ?Settings $oParserSettings = null, $iLineNo
3131
$this->oParserState = new ParserState($sText, $oParserSettings, $iLineNo);
3232
}
3333

34-
/**
35-
* Sets the charset to be used if the CSS does not contain an `@charset` declaration.
36-
*
37-
* @param string $sCharset
38-
*
39-
* @deprecated since 8.7.0, will be removed in version 9.0.0 with #687
40-
*/
41-
public function setCharset($sCharset): void
42-
{
43-
$this->oParserState->setCharset($sCharset);
44-
}
45-
46-
/**
47-
* Returns the charset that is used if the CSS does not contain an `@charset` declaration.
48-
*
49-
* @deprecated since 8.7.0, will be removed in version 9.0.0 with #687
50-
*/
51-
public function getCharset(): void
52-
{
53-
// Note: The `return` statement is missing here. This is a bug that needs to be fixed.
54-
$this->oParserState->getCharset();
55-
}
56-
5734
/**
5835
* Parses the CSS provided to the constructor and creates a `Document` from it.
5936
*

0 commit comments

Comments
 (0)