Skip to content

Commit 1be844b

Browse files
authored
[TASK] Deprecate Parser::setCharset() and Parser::getCharset() (#688)
Fixes #681
1 parent caea22c commit 1be844b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
2222

2323
### Deprecated
2424

25+
- Deprecate `Parser::setCharset()` and `Parser::getCharset()` (#688)
2526
- Deprecate `DeclarationBlock::createBorderShorthand()` (#578)
2627
- Deprecate `DeclarationBlock::createFontShorthand()` (#580)
2728
- Deprecate `DeclarationBlock::createDimensionsShorthand()` (#579)

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
* Sets the charset to be used if the CSS does not contain an `@charset` declaration.
3636
*
3737
* @param string $sCharset
38+
*
39+
* @deprecated will be removed in version 9.0.0 with #687
3840
*/
3941
public function setCharset($sCharset): void
4042
{
@@ -43,6 +45,8 @@ public function setCharset($sCharset): void
4345

4446
/**
4547
* Returns the charset that is used if the CSS does not contain an `@charset` declaration.
48+
*
49+
* @deprecated will be removed in version 9.0.0 with #687
4650
*/
4751
public function getCharset(): void
4852
{

0 commit comments

Comments
 (0)