Releases: inpsyde/php-coding-standards
v2.0.1
Maintenance Mode
Important
Please note that development on this package has shifted to maintenance mode only. We remain committed to fixing bugs, ensuring compatibility, and addressing security concerns until July 31, 2025. New features are not planned at this time. Maintenance mode will end on August 1, 2025, effectively marking the End-of-Life date of this package.
For active projects, we strongly recommend migrating to syde/phpcs
, the next-generation Syde PHP Coding Standards for WordPress development at scale, supporting PHP 8.1+. Please refer to the dedicated Migration docs to get a high-level understanding of the potential migration effort.
Full Changelog: 2.0.0...2.0.1
v2.0.0
What's Changed
- Add "static analysis" Composer keyword by @GaryJones in #56
- Modernize: PHP 8 and WPCS 3 by @gmazzap in #69
- Remove Neutron PHP Standard by @gmazzap in #70
- Modernize sniffs & helpers and embrace PHPCSUtils by @gmazzap in #74
- Create HookPriorityLimit Sniff by @antonioeatgoat in #75
- Add sniff for Emacs UTF-8 file header by @antonioeatgoat in #77
- Add sniff for space after cast and logical not by @antonioeatgoat in #76
- Allow setUpBeforeClass method name by @tfrommen in #82
- Support PHPCompatibility 10 by @gmazzap in #83
- Add template-specific sniffs by @shvlv in #81
- Add E2E tests by @shvlv in #86
- Update and improve README by @gmazzap in #87
- Remove $ from shell snippets by @gmazzap in #88
- Improve docs and tooling by @tfrommen in #89
- Update serialization mechanism by @gmazzap in #90
- Fix RiskyTruthyFalsyComparison by @antonioeatgoat in #94
- Force zero spaces after logical not operator by @antonioeatgoat in #93
- Add sniffs for array spacing and property types by @tfrommen in #96
- Add AlternativeControlStructure and ShortEchoTag sniffs by @shvlv in #97
- Fix bug in StaticClosure sniff by @tfrommen in #99
- Add missing sniff to sniff list by @tfrommen in #101
- Lint on PHP 8.4 by @tfrommen in #102
Migrating from 1.x to 2.x
While there is a big difference between version 1.x and 2.x, both in terms of internal code structure and sniffs and (third-party) standards being used, in most cases, migrating to the new version is as simple as re-requiring the package (with all dependencies):
composer require --dev inpsyde/php-coding-standards -W
Documentation
For an up-to-date documentation of the standards, please refer to the README.md
file, as well as the list of custom sniffs.
New Contributors
- @antonioeatgoat made their first contribution in #75
- @Chrico made their first contribution in #84
- @GaryJones made their first contribution in #56
- @shvlv made their first contribution in #81
- @tfrommen made their first contribution in #82
Full Changelog: 1.0.0...2.0.0
v2.0.0-beta.7
What's Changed
Full Changelog: 2.0.0-beta.6...2.0.0-beta.7
v2.0.0-beta.6
What's Changed
Full Changelog: 2.0.0-beta.5...2.0.0-beta.6
v2.0.0-beta.5
What's Changed
- Update & improve README by @gmazzap in #87
- Remove $ from shell snippets by @gmazzap in #88
- Docs & Tooling by @tfrommen in #89
- Update serialization mechanism by @gmazzap in #90
- Fix RiskyTruthyFalsyComparison by @antonioeatgoat in #94
- Force zero spaces after Not operator by @antonioeatgoat in #93
- Add Sniffs for Array Spacing and Property Types by @tfrommen in #96
Full Changelog: 2.0.0-beta.4...2.0.0-beta.5
v2.0.0-beta.4
Changed
- Updated license and handle company name re-branding, by @Chrico
- Removed license text from each file, by @gmazzap
- Synced
development
withversion/2
and made the latter the default branch
Fixed
- Usage of InpsydeTemplates, by @shvlv
- Add e2e tests, and re-organize tests code, by @shvlv
- Unused code cleanup, by @gmazzap
Full Changelog: 2.0.0-beta.3...2.0.0-beta.4
v2.0.0-beta.3
Added
- Run QA on PHP 8.3 by @gmazzap
Fixed
- False positive for invalid return type when declaring
\Iterator
or\Traversable
oriterable
and not returning a generator. by @gmazzap
Full Changelog: 2.0.0-beta.2...2.0.0-beta.3
v2.0.0-beta.2
v2.0.0-beta.1
Added
- Add checks for Emacs UTF-8 file header (
EncodingCommentSniff
) (See #50). - Add checks for ensuring space after casting (See #55).
- Add checks for priority used on hooks and filters (
HooPriorityLimit
) (See #75). - Embrace PHPCSUtils (See #72).
Changed
- Upgrade
automattic/vipwpcs
to^3.0.0
. - Modernize existing sniffs (See #73).