Skip to content

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Aug 2, 2025

Bumps sabberworm/php-css-parser from 8.5.1 to 9.0.0.

Release notes

Sourced from sabberworm/php-css-parser's releases.

V9.0.0: New features, deprecation removals and bug fixes

Added

  • Interface RuleContainer for RuleSet Rule manipulation methods (#1256)
  • Partial support for CSS Color Module Level 4:
    • rgb and rgba, and hsl and hsla are now aliases (#797)
    • Parse color functions that use the "modern" syntax (#800)
    • Render RGB functions with "modern" syntax when required (#840)
    • Support none as color function component value (#859)
  • Add a class diagram to the README (#482)
  • Add more tests (#449)

Changed

  • DeclarationBlock no longer extends RuleSet and instead has a RuleSet as a property; use getRuleSet() to access it directly (#1194)
  • The default line (and column) number is now null (not zero) (#1288)
  • setPosition() (in Rule and other classes) now has fluent interface, returning itself (#1259)
  • RuleSet::removeRule() now only allows Rule as the parameter (implementing classes are AtRuleSet and DeclarationBlock); use removeMatchingRules() or removeAllRules() for other functions (#1255)
  • RuleSet::getRules() and getRulesAssoc() now only allow string or null as the parameter (implementing classes are AtRuleSet and DeclarationBlock) (#1253)
  • Initialize KeyFrame properties to sensible defaults (#1146)
  • Make OutputFormat final (#1128)
  • Make Selector a Renderable (#1017)
  • Only allow string for some OutputFormat properties (#885)
  • Use more native type declarations and strict mode (#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958, #964, #967, #1000, #1044, #1134, #1136, #1137, #1139, #1140, #1141, #1145, #1162, #1163, #1166, #1172, #1174, #1178, #1179, #1181, #1183, #1184, #1186, #1187, #1190, #1192, #1193, #1203)
  • Add visibility to all class/interface constants (#469)

Removed

  • Remove getLineNo() from these classes (use getLineNumber() instead): Comment, CSSList, SourceException, Charset, CSSNamespace, Import, Rule, DeclarationBlock, RuleSet, CSSFunction, Value (#1258)
  • Remove Rule::getColNo() (use getColumnNumber() instead) (#1287)
  • Passing a string as the first argument to getAllValues() is no longer supported and will not work; the search pattern should now be passed as the second argument (#1243)
  • Passing a Boolean as the second argument to getAllValues() is no longer supported and will not work; the flag for searching in function arguments should now be passed as the third argument (#1243)
  • Remove __toString() (#1046)
  • Drop magic method forwarding in OutputFormat (#898)

... (truncated)

Changelog

Sourced from sabberworm/php-css-parser's changelog.

9.0.0: New features, deprecation removals and bug fixes

Added

  • Interface RuleContainer for RuleSet Rule manipulation methods (#1256)
  • Partial support for CSS Color Module Level 4:
    • rgb and rgba, and hsl and hsla are now aliases (#797)
    • Parse color functions that use the "modern" syntax (#800)
    • Render RGB functions with "modern" syntax when required (#840)
    • Support none as color function component value (#859)
  • Add a class diagram to the README (#482)
  • Add more tests (#449)

Changed

  • DeclarationBlock no longer extends RuleSet and instead has a RuleSet as a property; use getRuleSet() to access it directly (#1194)
  • The default line (and column) number is now null (not zero) (#1288)
  • setPosition() (in Rule and other classes) now has fluent interface, returning itself (#1259)
  • RuleSet::removeRule() now only allows Rule as the parameter (implementing classes are AtRuleSet and DeclarationBlock); use removeMatchingRules() or removeAllRules() for other functions (#1255)
  • RuleSet::getRules() and getRulesAssoc() now only allow string or null as the parameter (implementing classes are AtRuleSet and DeclarationBlock) (#1253)
  • Initialize KeyFrame properties to sensible defaults (#1146)
  • Make OutputFormat final (#1128)
  • Make Selector a Renderable (#1017)
  • Only allow string for some OutputFormat properties (#885)
  • Use more native type declarations and strict mode (#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958, #964, #967, #1000, #1044, #1134, #1136, #1137, #1139, #1140, #1141, #1145, #1162, #1163, #1166, #1172, #1174, #1178, #1179, #1181, #1183, #1184, #1186, #1187, #1190, #1192, #1193, #1203)
  • Add visibility to all class/interface constants (#469)

Removed

  • Remove getLineNo() from these classes (use getLineNumber() instead): Comment, CSSList, SourceException, Charset, CSSNamespace, Import, Rule, DeclarationBlock, RuleSet, CSSFunction, Value (#1258)
  • Remove Rule::getColNo() (use getColumnNumber() instead) (#1287)
  • Passing a string as the first argument to getAllValues() is no longer supported and will not work; the search pattern should now be passed as the second argument (#1243)
  • Passing a Boolean as the second argument to getAllValues() is no longer supported and will not work; the flag for searching in function arguments should now be passed as the third argument (#1243)
  • Remove __toString() (#1046)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sabberworm/php-css-parser](https://github.com/MyIntervals/PHP-CSS-Parser) from 8.5.1 to 9.0.0.
- [Release notes](https://github.com/MyIntervals/PHP-CSS-Parser/releases)
- [Changelog](https://github.com/MyIntervals/PHP-CSS-Parser/blob/main/CHANGELOG.md)
- [Commits](MyIntervals/PHP-CSS-Parser@v8.5.1...v9.0.0)

---
updated-dependencies:
- dependency-name: sabberworm/php-css-parser
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Aug 2, 2025
@rtBot rtBot closed this Aug 2, 2025
Copy link
Author

dependabot bot commented on behalf of github Aug 2, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/composer/sabberworm/php-css-parser-9.0.0 branch August 2, 2025 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant