Skip to content

[TASK] Deprecate Parser::setCharset() and Parser::getCharset() #703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Deprecated

- Deprecate `Parser::setCharset()` and `Parser::getCharset()` (#703)

### Removed

### Fixed
Expand Down
4 changes: 4 additions & 0 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public function __construct($sText, Settings $oParserSettings = null, $iLineNo =
* @param string $sCharset
*
* @return void
*
* @deprecated will be removed in version 9.0.0 with #687
*/
public function setCharset($sCharset)
{
Expand All @@ -45,6 +47,8 @@ public function setCharset($sCharset)
* Returns the charset that is used if the CSS does not contain an `@charset` declaration.
*
* @return void
*
* @deprecated will be removed in version 9.0.0 with #687
*/
public function getCharset()
{
Expand Down