NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #4169 most downloaded on Packagist
Spryker Code Sniffer Standards
Latest stable
0.17.36
Last release 3 months ago
21 Aug 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
120 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Fixed method spacing in interfaces.
Fixed method spacing in interfaces.
Included commits: https://github.com/spryker/code-sniffer/compare/0.14.4...0.14.5
Included commits: https://github.com/spryker/code-sniffer/compare/0.14.4...0.14.5
Added SlevomatCodingStandard.ControlStructures.ControlStructureSpacing sniff which adds an empty line before control structures.
This is a subjective sniff that might not be something you want to enforce on project level.
If your project wants to silence/exclude this for now, add the following into your config/ruleset.xml:
<rule ref="SlevomatCodingStandard.ControlStructures.ControlStructureSpacing">
<severity>0</severity>
</rule>
Fixed FQCN inline to normalized use statements for nullable return types.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed FQCN inline to normalized use statements for nullable return types.
Allow new major of slevomat/coding-standard ruleset.
Allow new major of slevomat/coding-standard ruleset.
Fixed support of typed deep arrays like string[][]. Until now only one level was supported, this is now fixed.
Fix ReturnTypeHintSniff to detect all chainable issues around return types.
Fix ReturnTypeHintSniff to detect all chainable issues around return types.
Allow iterable as new pseudo-type to be used.
Allow iterable as new pseudo-type to be used.
Included commits: https://github.com/spryker/code-sniffer/compare/0.13.1...0.14.0
Included commits: https://github.com/spryker/code-sniffer/compare/0.13.1...0.14.0
: self for $this returning methods. The sniff makes sure that the doc block is the only return type information.SprykerStrict. It ships with PHP7.1+ typehinting auto-fixing. This can change behavior, introduces possible extendability issues and must be applied carefully (we at Spryker only use it for new code/modules or major refactors). By default the current Spryker standard will still be used for all core and project checks - and we recommend projects to also continue to use that one.For details see the included list of sniffs in docs/ folder.
Please note: You can always configure your project level to include/exclude certain sniffs. This can help migrating when extending and applying a new core ruleset by slowly including the new sniffs via master branch updates until all are applied. Then, after a certain period of time to allow adjusting all feature branches (git merge origin/master), you have the ruleset and quality checks in place without any fallout for your current project development.
Fixed newline issues around doc blocks.
Added ClassConstantVisibility sniff (for now without autofixing).
@api annotations.If you want to activate the public constants auto-fixing for your project you can do that by extending the config as follows:
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility">
<properties>
<property name="fixable" type="bool" value="true"/>
</properties>
</rule>
Tip: This can also be done once by one person temporarily to upgrade master code, and then set back to non-auto-fix-mode.
Fixed minimum constraints towards vendors.
Fixed minimum constraints towards vendors.
Fix adding of missing getFacade() annotations
FunctionSpacingSniff now also asserts proper newlines between constants and methods.
Fixed .license file detection for standalone modules
.license file detection for standalone modulesyield occurrences<?php declare(strict_types = 1); open tagAdded DocBlockVarNotJustNullSniff
Fixed SuperfluousWhitespace being wrongly skipped due to bad PSR-2 ruleset defaults.
self vs $this fixes added, especially around PHP 7.The sniffer code is now also PHP7.1+ typehinted to assert better code quality. PHPStan also assists now in making sure, this is all clean and error free.
PHP 7.1+ now as the rest of the eco system.
PHP 7.1+ now as the rest of the eco system.
Aligned nullable and default null in signature and doc blocks.
Added FQCN resolvement for new PHP 7 return type signature.
Added FQCN resolvement for new PHP 7 return type signature.
Prevent Yves leaking into Zed and vice versa.
Prevent Yves leaking into Zed and vice versa.
Also allow new SprykerEco, SprykerSdk, SprykerShop CORE namespace to be part of CORE rules.
The Spryker Coding Standard has now full PSR-2 compliance and consists in total of 130 sniffs.
The Spryker Coding Standard has now full PSR-2 compliance and consists in total of 130 sniffs.
Please note that this version now requires PHP 7.0+.
Spryker very soon will also gophp71. Thus all modules will soon be 7.1+.
If you need to continue supporting older PHP versions, e.g. in Travis, you can enable the CS run for a PHP7.x branch only:
install:
- composer remove --dev spryker/code-sniffer jean85/pretty-package-versions
- if [[ $TRAVIS_PHP_VERSION != 5.6 ]] ; then composer require --dev spryker/code-sniffer ; fi
- composer install --optimize-autoloader --no-interaction
This will remove it from all builds, but re-add it for PHP7.0+.
Fixed wrong regex exclusion that lead to many PHP files not being checked (!)
UseStatementSniff has been fixed around FQCN for try catch.
Bridge sniff now also checks for interface annotations
Fixed docs/README.md generation and its rule parsing
Added Tokenizer tool for writing sniffs easier (as you can now analyze the tokens of a specific PHP file in detail).
It now uses the latest v3 phpcs library and already includes a lot of useful sniffs for your project. Please make sure you also require the new major
It now uses the latest v3 phpcs library and already includes a lot of useful sniffs for your project. Please make sure you also require the new major of this dependency when upgrading to this release.
Small fixes in e.g. EmptyLinesSniff.
Fixed DocBlockTestGroupAnnotation2Sniff to also check PyzTest namespace.
Fixed small regression with the /data/ path exclusion.
Fixed small regression with the /data/ path exclusion.
Fixed DocBlockTagGroupingSniff and DocBlockTagOrderSniff
/data/ folder for non-code and irrelevant files### Improvements - Add missing DocBlockParamSniff
### Bugfixes Exclude irrelevant directory.
Exclude irrelevant directory.
The use statement ordering is now done in a more natural way - the same way IDEs like PHPStorm do it out of the box.
The use statement ordering is now done in a more natural way - the same way IDEs like PHPStorm do it out of the box.
Before:
use Spryker\Zed\Bundle\Business\FooBarBaz;
use Spryker\Zed\Bundle\Business\FooBar\Bar;
use Spryker\Zed\Bundle\Business\Foo\BarBaz;
use Spryker\Zed\Bundle\Business\Foo\Bar\Baz\Foo;
Now:
use Spryker\Zed\Bundle\Business\Foo\Bar\Baz\Foo;
use Spryker\Zed\Bundle\Business\Foo\BarBaz;
use Spryker\Zed\Bundle\Business\FooBar\Bar;
use Spryker\Zed\Bundle\Business\FooBarBaz;
Abstract plugins do not require annotations.
PHP7 with the new typehints wasn't working properly. This is now solved.
PHP7 with the new typehints wasn't working properly. This is now solved.
It also includes a Spryker internal sniff for project to demoshop releasing.
Makes sure doc block param types are never just null, but always another type and optionally nullable on top.
Makes sure doc block param types are never just null, but always another type and optionally nullable on top.
Nothing published for this version
CommaSpacingSniff can now auto fix.
CommaSpacingSniff can now auto fix.
Makes sure the Pyz (project) namespace does not leak into the Spryker core one.
Adjusting all FQCN into use statements:
Adjusting all FQCN into use statements:
It includes native PHP classes. This makes it easier for dependency tools to pick up code dependencies as it only needs to parse the use statements.
Newly added:
Year is now hardcoded to 2016 to avoid lots of files being changed. This is a core only patch.
Year is now hardcoded to 2016 to avoid lots of files being changed. This is a core only patch.
This is an internal patch for Spryker facade and interface matching.
This is an internal patch for Spryker facade and interface matching.
This is only a Spryker internal fix.
This is only a Spryker internal fix.
A concurrency issue in whitespace sniffs has been resolved.
A concurrency issue in whitespace sniffs has been resolved.
All *PluginInterface now also have the @api tag (Spryker only)
Added
Modified
*PluginInterface now also have the @api tag (Spryker only)@throw tags allowed for all @api tagged methods as part of contract definition (Spryker only)Added - EmptyLinesSniff - DocBlockTagOrderSniff
Added
NoPrivateMethodsSniff only for Core now
DocBlockParamAllowDefaultValueSniff
Add
We only declare exceptions thrown on the same method, they don't leak into the child methods as this is not maintainable. This is now fully automated
We only declare exceptions thrown on the same method, they don't leak into the child methods as this is not maintainable.
This is now fully automated unless there is some dynamic throw $e involved which must then be handled manually still.
This is mainly interesting to core, but also projects can use it to build the @group annotations automatically. This makes it easier to extract specif
This is mainly interesting to core, but also projects can use it to build the @group annotations automatically.
This makes it easier to extract specific tests (or groups of it) to run.
Spryker.Namespaces.SprykerNamespace
Added
This is currently only for core to assert the namespaces fit to the folder structure.
Fixed
The former one had a few bugs.
DemoshopExistingFileDocBlockSniff
Nothing published for this version
Also fixes SprykerUseStatement.
Also fixes SprykerUseStatement.
@property is now handled correctly.
@property is now handled correctly.
Nothing published for this version
Nothing published for this version
Also exclude third party bundles.
Also exclude third party bundles.
Nothing published for this version
The sniff makes sure the class name matches the file name. Especially regarding CI operating systems there can quickly be a typo in the naming which l
The sniff makes sure the class name matches the file name. Especially regarding CI operating systems there can quickly be a typo in the naming which leads to the class not being found.
License is now MIT. More sniffers migrated/added.
License is now MIT. More sniffers migrated/added.
Nothing published for this version
Integrate basic sniffs and make PRs testable.
Integrate basic sniffs and make PRs testable.
One column per quarter.