Skip to content

Commit d9edd5e

Browse files
committed
[TASK] Deprecate Parser::setCharset() and Parser::getCharset()
Fixes #681
1 parent a8e91c9 commit d9edd5e

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
@@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
2020

2121
### Deprecated
2222

23+
- Deprecate `Parser::setCharset()` and `Parser::getCharset()` (#688)
2324
- Deprecate `DeclarationBlock::createBorderShorthand()` (#578)
2425
- Deprecate `DeclarationBlock::createFontShorthand()` (#580)
2526
- Deprecate `DeclarationBlock::createDimensionsShorthand()` (#579)

src/Parser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function __construct($sText, ?Settings $oParserSettings = null, $iLineNo
3333
* Sets the charset to be used if the CSS does not contain an `@charset` declaration.
3434
*
3535
* @param string $sCharset
36+
*
37+
* @deprecated will be removed in version 9.0.0 with #687
3638
*/
3739
public function setCharset($sCharset): void
3840
{
@@ -41,6 +43,8 @@ public function setCharset($sCharset): void
4143

4244
/**
4345
* Returns the charset that is used if the CSS does not contain an `@charset` declaration.
46+
*
47+
* @deprecated will be removed in version 9.0.0 with #687
4448
*/
4549
public function getCharset(): void
4650
{

0 commit comments

Comments
 (0)