NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1350 most downloaded on Packagist
The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.
Latest stable
14.0.0
Last release 1 years ago
21 Sep 2025
Release timing varies
gaps range from 9 days to 1.9 years
Nearly every release is documented
notes for 28 of 28 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
28 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Backwards incompatible release (major)
Backwards incompatible release (major)
Total pull requests resolved: 1
13.0.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
339: fix: update rule for language construct spacing thanks to @simPod
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Backwards incompatible release (major)
Backwards incompatible release (major)
Total issues resolved: 0
Total pull requests resolved: 2
Total contributors: 1
327: feat: enable SlevomatCodingStandard.TypeHints.ClassConstantTypeHint thanks to @simPod
Backwards incompatible release (major)
Backwards incompatible release (major)
Makefile thanks to @phansysTotal pull requests resolved: 2
Feature release (minor)
Backwards incompatible release (major)
Backwards incompatible release (major)
Total issues resolved: 0
Total pull requests resolved: 6
Total contributors: 2
304: String interpolation: don't suggest sprintf() thanks to @derrabus
295: feat: handle blank lines between class properties thanks to @simPod
292: refactor: just rerun patch targets thanks to @simPod
Backwards incompatible release (major)
Backwards incompatible release (major)
use thanks to @simPodThis release is the same as 9.0.0, in order to "cancel" 9.0.1, which had many breaking changes.
This release is the same as 9.0.0, in order to "cancel" 9.0.1, which had many breaking changes.
Total pull requests resolved: 5
9.0.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 5
Total contributors: 1
269: fix: use tmp-patch file name thanks to @simPod
264: chore(deps): require slevomat/coding-standard v8 and squizlabs/php_codesniffer v3.7 thanks to @simPod
257: Add tests for PHP 8 thanks to @simPod
255: Require Null Safe Object operator thanks to @simPod
252: Add RequireOneLineDocComment sniff thanks to @simPod
Total pull requests resolved: 1
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
238: Add psalm-prefixed annotations to param and return group thanks to @simonberger
241: Slevomat CS 7.0.0 and PHPCS 3.6.0 thanks to @kukulich
Total pull requests resolved: 2
8.2.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 2
Total contributors: 2
237: Remove SlevomatCodingStandard.Classes.UnusedPrivateElements thanks to @morozov
Total pull requests resolved: 9
Total issues resolved: 0
Total pull requests resolved: 9
Total contributors: 6
226: Still works on PHP 7.1 thanks to @beberlei
220: Drop Travis thanks to @greg0ire
195: Makefile improvements thanks to @greg0ire
user_error function in forbidden ones as it is an alias thanks to @gmponosTotal pull requests resolved: 1
Release 8.1.0
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
213: Composer: update PHPCS Composer plugin dependency thanks to @jrfnl
This new major version includes rules that make this repository of standards fully compatible with PSR-12 and additional rules for PHP 7.4.
Release 8.0.0
This new major version includes rules that make this repository of standards fully compatible with PSR-12 and additional rules for PHP 7.4.
194: Update tests expectations based on bugfix in dependencies thanks to @carusogabriel
176: Remove dead sniffs autoload thanks to @WyriHaximus
170: Improve diff while running test-report thanks to @carusogabriel
169: Ensure that spacing around cases are consistent thanks to @carusogabriel
159: Normalize documentation comments thanks to @mathieu-bour
157: Improve diff while running test-fix thanks to @carusogabriel
151: Remove usless interface and trait comments thanks to @BackEndTea
192: Allow PHP 8 thanks to @greg0ire
147: Use stable version of PHP 7.4 in Travis CI thanks to @carusogabriel
SingleLineArrayWhitespace to ensure single line arrays spacing thanks to @carusogabrielNegationOperatorSpacingSniff to ensure no space before - thanks to @carusogabrielTotal pull requests resolved: 2
Release 7.0.2
Total pull requests resolved: 1
Release 7.0.1
Total pull requests resolved: 12
Release 7.0.0
composer.json master branch-alias to 7.0.x-dev thanks to @Ocramius133: Update documentation for v6 thanks to @carusogabriel
127: Drop PHP 7.1, add 7.4 to Travis thanks to @simPod
213: Composer: update PHPCS Composer plugin dependency thanks to @jrfnl
This new major release brings in some new default rules:
This new major release brings in some new default rules:
Abstract, Trait, Exception, Interface prefixes along with suffixes/** class Foo */ for class Foo comments (some editors add it by default, and it is not useful)$foo = $foo = bar()function (int $foo)$foo::BAR is now a violationreturn statement when not directly within a flow control constructTotal issues resolved: 19
Abstract, Exception and Interface prefixing too thanks to @greg0ireIn this version we address the issue regarding formatting associative arrays and upgraded composer installer dependency.
In this version we address the issue regarding formatting associative arrays and upgraded composer installer dependency.
Total pull requests resolved: 37
use thanks to @deeky666[28: [RFC] Add more forbiddenAnnotations](https://github.com/doctrine/coding-standard/pull/28) thanks to @carusogabriel
Total issues resolved: 7
33: Bump PHPCS, fix BC break thanks to @Majkl578
This release introduces a few new additional checks that are enabled by default:
This release introduces a few new additional checks that are enabled by default:
??) operator where applicablenew statementTotal issues resolved: 7
@requires annotation thanks to @Majkl578This release adds sniffs to import global functions and constants.
This release adds sniffs to import global functions and constants.
Total issues resolved: 3
Improvement
use thanks to @Majkl578use thanks to @Majkl578Version 2.0.0 incorporates many new sniffs for code safety, predictable behavior and consistent code look, Most notably:
Version 2.0.0 incorporates many new sniffs for code safety, predictable behavior and consistent code look, Most notably:
!),uses,int vs. integer),We're also moving towards PHP 7.1/7.2 standards and strict code. As part of this, we're now including checks for:
declare(strict_types=1) in every file,This release makes this project compatible with PHPCS v3.0 and implements some missing sniffs (also making sure that we can apply automatic fixes with
This release makes this project compatible with PHPCS v3.0 and implements some missing sniffs (also making sure that we can apply automatic fixes with PHPCBF).
Total issues resolved: 1
This is an intermediate release aimed at people relying on PHP_CodeSniffer 1.*. It is required in order for us to transition to PHP_CodeSniffer 2.* su
First development release.
This is an intermediate release aimed at people relying on PHP_CodeSniffer 1.*. It is required in order for us to transition to PHP_CodeSniffer 2.* support.
One column per quarter.