Releases: pronamic/wp-coding-standards
Releases · pronamic/wp-coding-standards
2.3.0
Changelog
- Increased minimum WordPress version to
6.5
. - Increased minimum PHP version to
8.2
.
Full Changelog: v2.2.0...v2.3.0
2.2.0
Full Changelog: v2.1.0...v2.2.0
2.1.0
Changelog
Changed
- Updated to
PHPCSStandards/PHP_CodeSniffer
version3.8
: https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.8.0. - Increased minimum WordPress version to
6.2
. - Increased minimum PHP version to
8.1
.
2.0.2
Changelog
Added
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
https://github.com/squizlabs/PHP_CodeSniffer/blob/3.7.2/src/Standards/Generic/Sniffs/Arrays/DisallowLongArraySyntaxSniff.php
2.0.1
- Changed config
minimum_supported_version
tominimum_wp_version
: https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties.
2.0.0
- Update to WordPress coding standards version
3.0.0
: https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.0.0. - Update to WordPress VIP coding standards version
3.0.0
: https://github.com/Automattic/VIP-Coding-Standards/releases/tag/3.0.0 - Increased minimum WordPress version to
6.1
. - Increased minimum PHP version to
8.0
.
1.3.0
- For now allow PHP
7.4
.
1.3.0
Changelog
Changed
- Updated minimum WordPress version to
5.9
: https://codex.wordpress.org/Supported_Versions. - Updated minimum PHP version to
8.0
: https://www.php.net/supported-versions.
Fixed
Contributors
1.2.0
Changed
- We deviate from the WordPress Coding Standards and switch to the short array syntax.
Exclusions
Generic.Arrays.DisallowShortArraySyntax
According to the WordPress PHP Coding Standards:
Using long array syntax (
array( 1, 2, 3 )
) for declaring arrays is generally more readable than short array syntax ([ 1, 2, 3 ]
), particularly for those with vision difficulties. Additionally, it’s much more descriptive for beginners.Arrays must be declared using long array syntax.
Source: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#declaring-arrays
This change can be done using PHP Coding Standards Fixer:
php-cs-fixer fix --rules @PHP54Migration ./src/
vendor/bin/phpcbf
1.1.0
Changed
- Updated minimum WordPress version to
5.7
: https://codex.wordpress.org/Supported_Versions. - Updated minimum PHP version to
7.4
: https://www.php.net/supported-versions.