Skip to content

Commit

Permalink
[TASK] Mark parsing-internal classes and methods as @internal
Browse files Browse the repository at this point in the history
Code that uses this library is not expected to call internal parsing
functionality. Communicate this with the corresponding `@internal`
annotation.

This allows us to boldly refactor the parser code.

This is the backport of #674.

Part of #668
  • Loading branch information
oliverklee committed Sep 5, 2024
1 parent 592f416 commit 108bd8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Changed

- Mark parsing-internal classes and methods as `@internal` (#711)
- Block installations on unsupported higher PHP versions (#691)

### Deprecated
Expand Down
3 changes: 3 additions & 0 deletions src/Parsing/Anchor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Sabberworm\CSS\Parsing;

/**
* @internal
*/
class Anchor
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Parsing/ParserState.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Sabberworm\CSS\Comment\Comment;
use Sabberworm\CSS\Settings;

/**
* @internal
*/
class ParserState
{
/**
Expand Down

0 comments on commit 108bd8f

Please sign in to comment.