Skip to content

Releases: pronamic/wp-coding-standards

2.3.0

19 Dec 10:00
Compare
Choose a tag to compare

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

26 Mar 09:40
Compare
Choose a tag to compare

Full Changelog: v2.1.0...v2.2.0

2.1.0

13 Dec 10:02
Compare
Choose a tag to compare

Changelog

Changed

2.0.2

02 Nov 13:47
Compare
Choose a tag to compare

2.0.1

11 Sep 14:02
Compare
Choose a tag to compare

2.0.0

05 Sep 14:32
Compare
Choose a tag to compare

1.3.0

31 Jan 13:17
Compare
Choose a tag to compare
  • For now allow PHP 7.4.

1.3.0

01 Dec 11:58
Compare
Choose a tag to compare

Changelog

Changed

Fixed

  • Error trim(): Passing null to parameter #1 ($string) of type string is deprecated on PHP 8.1. #1

Contributors

@remcotolsma

1.2.0

12 Apr 09:38
Compare
Choose a tag to compare

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

17 Feb 15:54
Compare
Choose a tag to compare

Changed