update lock clucknut
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
Build, Push and Deploy / build-and-push (push) Successful in 3m14s
Build, Push and Deploy / deploy-staging (push) Successful in 25s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-18 20:32:18 +07:00
parent 4554035227
commit dcaf267458
3359 changed files with 153185 additions and 205489 deletions

View File

@@ -4,33 +4,11 @@
namespace Sabberworm\CSS\RuleSet;
use Sabberworm\CSS\Rule\Rule;
/**
* Represents a CSS item that contains `Rules`, defining the methods to manipulate them.
*/
interface RuleContainer
{
public function addRule(Rule $ruleToAdd, ?Rule $sibling = null): void;
public function removeRule(Rule $ruleToRemove): void;
public function removeMatchingRules(string $searchPattern): void;
public function removeAllRules(): void;
use function Safe\class_alias;
if (!\class_exists(RuleContainer::class, false) && !\interface_exists(RuleContainer::class, false)) {
/**
* @param array<Rule> $rules
* @deprecated in v9.2, will be removed in v10.0. Use `DeclarationList` instead, which is a direct replacement.
*/
public function setRules(array $rules): void;
/**
* @return array<int<0, max>, Rule>
*/
public function getRules(?string $searchPattern = null): array;
/**
* @return array<string, Rule>
*/
public function getRulesAssoc(?string $searchPattern = null): array;
class_alias(DeclarationList::class, RuleContainer::class);
}