NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1708 most downloaded on Packagist
A set of Magento specific PHP CodeSniffer rules.
Latest stable
2.0.0
Last release 3 months ago
18 Aug 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 40 of 43 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
43 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Magento2.Classes.DiscouragedDependencies detects explicit request of proxies and interceptors in constructors. https://github.com/magento/magento-codi
Magento2.Classes.DiscouragedDependencies detects explicit request of proxies and interceptors in constructors. https://github.com/magento/magento-coding-standard/issues/18 -> https://github.com/magento/magento-coding-standard/pull/59 by @maderlockMagento2.Performance.ForeachArrayMerge detects array_merge(...) usage in a loop. https://github.com/magento/magento-coding-standard/issues/20 -> https://github.com/magento/magento-coding-standard/pull/72 by @larsroettig^3.4 https://github.com/magento/magento-coding-standard/issues/84 -> https://github.com/magento/magento-coding-standard/pull/85 by @sergeynezbritskiy*/Fixtures/* exclude for rules that do not apply to test files.added test files excludes for specific rules: Magento2.Security.IncludeFile, Magento2.Security.Supergloba, Magento2.SQL.RawQuery, Magento2.Exceptions.
Magento2.Security.IncludeFile, Magento2.Security.Supergloba, Magento2.SQL.RawQuery, Magento2.Exceptions.DirectThrow, Magento2.Functions.DiscouragedFunction, Magento2.Functions.StaticFunction, Magento2.CodeAnalysis.EmptyBlock, Squiz.Functions.GlobalFunction, Squiz.PHP.GlobalKeyword, PSR1.Files.SideEffects -> fixed https://github.com/magento/magento-coding-standard/issues/80.Your coding agent can read these notes before it upgrades. Set up the MCP server →
removed EmptyCheckSniff since there is no performance impact;
EmptyCheckSniff since there is no performance impact;*/Test/* files;Squiz.Commenting.FunctionCommentThrowTag because it doesn't work with @inheritdoc tags.the use of deprecated PHP functions
🚀 Initial release of Magento Coding Standard - the result of MEQP and Magento 2 core rules consolidation.
• PSR2 compliance • the use of insecure functions • unescaped output • the use of deprecated PHP functions • PHP code syntax • naming convention • the use of PHP superglobals • empty code blocks • improper exception handling • raw SQL queries and many other general PHP and Magento 2 specific code issues.
Added sniff to ensure proper sniff for class properties PHPDoc formatting in #140 by @konarshankar07
active and version attributes in the module.xml file in #230 by @sveraparam, instance, array, item[@key] and value in di.xml in #233 by @loginestaeval and proc* functions to the InsecureFunctionSniff class by @orsinijoseFixed ImportsFromTestNamespace from lock on group use with trailing comma @fsw
Added sniff to ensure correct usage of getChildHtml and getChildChildHtml AbstractBlock methods @eliseacornejo
Modified deprecated validator to allow missing the comment if see tag is set in #181 by @sinisa86
Implemented sniff that checks that @deprecated tag is explained magento/magento-coding-standard#131 in magento/magento-coding-standard#134 by @udovici…
try catch construction magento/magento-coding-standard#21 in magento/magento-coding-standard#77 by @larsroettig@deprecated tag is explained magento/magento-coding-standard#131 in magento/magento-coding-standard#134 by @udovicichelpers in Magento2.Templates.ThisInTemplate sniff and updated documentation with recommendation magento/magento-coding-standard#121 in magento/magento-coding-standard#122 @diazwatson<exclude-pattern>*/tests/*</exclude-pattern> magento/magento-coding-standard#136 in magento/magento-coding-standard#138 by @konarshankar07How to use phpcbf in magento/magento-coding-standard#150 by @lfluvisottoEmpty FUNCTION statement detected for around plugins magento/magento-coding-standard#95 in magento/magento-coding-standard#126 by @konarshankar07phrase and __ keyword by removing redundant rule and using generic one magento/magento-coding-standard#75 in magento/magento-coding-standard#127 by @konarshankar07Updated ESLint to version 9.39.5 to resolve security vulnerability
Updated ESLint to version 9.39.5 to resolve security vulnerability
Nothing published for this version
Rule for constants PHPDoc formatting magento/magento-coding-standard#107 in magento/magento-coding-standard#116 by @udovicic
ThisInTemplate rule magento/magento-coding-standard#108 in magento/magento-coding-standard#119 by @diazwatsonThrowCatch false positive findings magento/magento-coding-standard#93 in magento/magento-coding-standard#120 by @larsroettigFull Changelog: https://github.com/magento/magento-coding-standard/compare/v38...v39
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v38...v39
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v37...v38
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v37...v38
Upgrade to the latest version of grunt-eslint
Full Changelog: https://github.com/magento/magento-coding-standard/compare/36...v37
Nothing published for this version
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v34...v35
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v34...v35
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v33...v34
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v33...v34
Add sniff for deprecated use of $block->escape... methods by @fredden in https://github.com/magento/magento-coding-standard/pull/458
Magento2.Security.XssTemplate sniff by @aadmathijssen in https://github.com/magento/magento-coding-standard/pull/378Full Changelog: https://github.com/magento/magento-coding-standard/compare/v32...v33
rector/rector upgraded to 0.17.12 version
rector/rector upgraded to ^0.15.10 version
rector/rector upgraded to ^0.15.10 versionMinimum version of PHP is set to 7.4
webonyx/graphql-php is updated to version 15.0Starting from the current release new versioning strategy will be used. One release line will be supported based on incremental approach despite intro
Starting from the current release new versioning strategy will be used. One release line will be supported based on incremental approach despite introduced changes and single number sequence-based version identifier will be incremented every release. Please refer to the wiki page and https://github.com/magento/architecture/pull/136 thread for more details.
InsecureFunctionSniff #104LiteralNamespacesSniff by removing class exists checks and adding exclude patterns #9 in #89 by @ldusan84htmlspecialchars is added to the list of discouraged functions in #96 by @davemacaulaySquiz.Commenting.ClassComment from the ruleset since it does not cover all Magento cases #106phtml files #112Undefined index: comment_closer in AbstractApiSniff.php #86 in #87 by @mzeisForeachArrayMergeSniff throws an error for inline control structure #110 in #111Returning back support of PHP 7.3
Returning back support of PHP 7.3
Fix performance issue with big arrays #429
Nothing published for this version
Allow to skip see tag in annotation with specific deprecated comment by @loginesta in https://github.com/magento/magento-coding-standard/pull/419
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v25...v26
Avoid processing less and CSS pseudo-classes by @svera
Fixed error when calling hasDeprecatedWellFormatted with a false $commentStartPtr in https://github.com/magento/magento-coding-standard/pull/400 by @m…
Fixed error when calling hasDeprecatedWellFormatted with a false $commentStartPtr in https://github.com/magento/magento-coding-standard/pull/400 by @mattijv
Require content for @see and @deprecated tags in #393 by @loginesta
@see and @deprecated tags in #393 by @loginestaAC-2724: Update rector dependency to the latest version by @eliseacornejo in https://github.com/magento/magento-coding-standard/pull/384
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v21...v22
AC-1655: Fixed obsolete attributes not detected by @svera in https://github.com/magento/magento-coding-standard/pull/380
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v20...v21
AC-2394 Update eslint npm dependency by @loginesta in https://github.com/magento/magento-coding-standard/pull/379
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v19...v20
AC-2219: Implemented autofixing for Magento2.Functions.FunctionsDeprecatedWithoutArgument.FunctionsDeprecatedWithoutArgument check
Magento2.Functions.FunctionsDeprecatedWithoutArgument.FunctionsDeprecatedWithoutArgument checkFull Changelog: https://github.com/magento/magento-coding-standard/compare/v18...v19
AC-1895: Avoid having duplicated issues in magento-coding-standard by @svera in https://github.com/magento/magento-coding-standard/pull/362
Full Changelog: https://github.com/magento/magento-coding-standard/compare/v17...v18
AC-391: Static test to cover "deprecated" jQuery methods by @Rrego6
Created Sniff to validate function which usage without arguments is deprecated in PHP 8.1 https://github.com/magento/magento-coding-standard/pull/325…
AC-1509: Removed deprecated JSCS package in #327 by @loginesta
AC-681: Create phpcs static check for PhtmlTemplateTest in #306 by @eliseacornejo
AC-679 Create phpcs static check for ObsoleteSystemConfigurationTest by @eliseacornejo
AC-1339: Detect comment for typed class properties by @svera
AC-1102: Static test to verify self-closing tags for non-void html elements by @xmav
Added sniff detecting obsolete email directives in #261 by @jcuerdo
One column per quarter.