Skip to content

Commit 87bdec6

Browse files
committed
Changelog for #3629
1 parent 059989d commit 87bdec6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

package.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ http://pear.php.net/dtd/package-2.0.xsd">
2626
</stability>
2727
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD 3-Clause License</license>
2828
<notes>
29+
- 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
2944
- Newer versions of Composer will now suggest installing PHPCS using require-dev instead of require
3045
-- Thanks to Gary Jones (@GaryJones) for the patch
3146
- A custom Out Of Memory error will now be shown if PHPCS or PHPCBF run out of memory during a run

0 commit comments

Comments
 (0)