Skip to content

Conversation

@owaisahmed5300
Copy link
Contributor

Description

This PR upgrades slevomat/coding-standard to ^8.22 and explicitly configures rule properties to remove reliance on upstream defaults.

⚠️ BREAKING CHANGE
This update introduces new rules and stricter configurations. Code that previously passed phpcs checks may now report errors.

Changes

  • Dependency Upgrade: Bumped slevomat/coding-standard to ^8.22.
  • Remove Rule: Enabled SlevomatCodingStandard.Files.TypeNameMatchesFileName.
  • Rule Changes:
    • TraitUseSpacing: Now enforces 0 lines between use statements inside classes.
    • ReferenceUsedNamesOnly: Explicitly disables allowPartialUses. Partial namespace imports are now forbidden.
    • RequireTernaryOperator: Now enforces ternary usage even for multi-line statements.

@owaisahmed5300 owaisahmed5300 merged commit 2970bb7 into main Nov 26, 2025
1 check passed
@owaisahmed5300 owaisahmed5300 deleted the feat/upgrade-slevomat-breaking branch November 27, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants