You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Changes have been made to the way PHPCS handles invalid sniff properties being set in a custom ruleset
30
+
-- Fixes PHP 8.2 deprecation notices for properties set in a (custom) ruleset for complete standards/complete sniff categories
31
+
-- Invalid sniff properties set for individual sniffs will now result in an error and halt the execution of PHPCS
32
+
--- A descriptive error message is provided to allow users to fix their ruleset
33
+
-- Sniff properties set for complete standards/complete sniff categories will now only be set on sniffs which explicitly support the property
34
+
--- The property will be silently ignored for those sniffs which do not support the property
35
+
-- For sniff developers, it is strongly recommended for sniffs to explicitly declare any user-adjustable public properties
36
+
--- If dynamic properties need to be supported for a sniff, either declare the magic __set()/__get()/__isset()/__unset() methods on the sniff or let the sniff extend stdClass
37
+
--- Note: The #[\AllowDynamicProperties] attribute will have no effect for properties which are being set in rulesets.
38
+
-- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
39
+
- The third parameter for the Ruleset::setSniffProperty() method has been changed to expect an array
40
+
-- Sniff developers/integrators of PHPCS may need to make some small adjustments to allow for this change
41
+
-- Existing code will continue to work but will throw a deprecation error
42
+
-- The backwards compatiblity layer will be removed in PHPCS 4.0
43
+
-- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
29
44
- Newer versions of Composer will now suggest installing PHPCS using require-dev instead of require
30
45
-- Thanks to Gary Jones (@GaryJones) for the patch
31
46
- A custom Out Of Memory error will now be shown if PHPCS or PHPCBF run out of memory during a run
0 commit comments