Skip to content

Commit 592f416

Browse files
authored
[TASK] Deprecate Parser::setCharset() and Parser::getCharset() (#703)
This is the backport of #688, which fixed #681.
1 parent b547d12 commit 592f416

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1515

1616
### Deprecated
1717

18+
- Deprecate `Parser::setCharset()` and `Parser::getCharset()` (#703)
19+
1820
### Removed
1921

2022
### Fixed

src/Parser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public function __construct($sText, Settings $oParserSettings = null, $iLineNo =
3535
* @param string $sCharset
3636
*
3737
* @return void
38+
*
39+
* @deprecated will be removed in version 9.0.0 with #687
3840
*/
3941
public function setCharset($sCharset)
4042
{
@@ -45,6 +47,8 @@ public function setCharset($sCharset)
4547
* Returns the charset that is used if the CSS does not contain an `@charset` declaration.
4648
*
4749
* @return void
50+
*
51+
* @deprecated will be removed in version 9.0.0 with #687
4852
*/
4953
public function getCharset()
5054
{

0 commit comments

Comments
 (0)