Upgrading doctrine/coding-standard 10 to 11
Breaking10.0.0 → 11.1.0Breaking3New1Changed2Other1
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- New checks for PHP attributes are introduced, which can flag existing code.
- The sniff for one-line property doc comments is replaced by a more general one-line doc comment sniff.
- The explicit assertions rule now also checks advanced string types and integer ranges, which can flag existing code.
Must act 3 items need code or config changes
Moves dealerdirect/phpcodesniffer-composer-installer ^0.6.2 || ^0.7 → ^0.6.2 || ^0.7 || ^1.0.0, slevomat/coding-standard ^8.2 → ^8.6.2. Your build may pick other versions.
What you must change
Breaking3
Adds attribute sniffs as a new rule, a backwards incompatible change.
Replaces RequireOneLinePropertyDocComment with RequireOneLineDocComment.
RequireOneLinePropertyDocCommentRequireOneLineDocCommentEnables advanced string types and integer ranges in explicit assertions, a new rule.