Skip to content

Conversation

@andrewnicols
Copy link
Contributor

  • Two upstream PHPCS sniffs have been deprecated as they are no longer supported by recent versions of PHP
  • There is also a rule format change

Fixes #210

Two rules have been dropped in preparation for PHP CS 4.0 support:

- `Squiz.Classes.DuplicateProperty` - this rule only supports
  JavaScript, and PHPCS will no longer support JS. Moodle has other,
  more appropriate, tools for JS anyway.
- `Generic.Functions.CallTimePassByReference` - this rule relates to a
  language feature which was dropped in PHP 5.4.
@codecov
Copy link

codecov bot commented Sep 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.35%. Comparing base (8be8d2a) to head (2718972).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #212   +/-   ##
=========================================
  Coverage     98.35%   98.35%           
  Complexity      994      994           
=========================================
  Files            42       42           
  Lines          3109     3109           
=========================================
  Hits           3058     3058           
  Misses           51       51           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andrewnicols andrewnicols merged commit 1159eb1 into moodlehq:main Sep 9, 2025
13 checks passed
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.

Deprecated syntax: array property values in ruleset.xml for PHPCS

1 participant