Releases: spryker/code-sniffer
Releases · spryker/code-sniffer
0.17.28
Included commits: 0.17.27...0.17.28
Fixes
- Temporary locked the usage version for
phpstan/phpdoc-parser
used in the tool.
0.17.27
0.17.26
Included commits: 0.17.25...0.17.26
Improvements
- Added
SprykerFeature
module types to supported namespaces.
0.17.25
0.17.24
Included commits: 0.17.23...0.17.24
Fixes
- Adjusted
DocBlockApiAnnotationSniff
to fix the false negative errors when declaring theSpecification
annotation.
0.17.23
Included commits: 0.17.22...0.17.23
Fixes
- Adjusted QueryContainerMethodAnnotationSniff to remove deprecated getQueryContainer() annotation validation.
0.17.22
Included commits: 0.17.21...0.17.22
Fixes
- Adjusted configuration so it supports Constructor Property Promotion.
0.17.21
Included commits: 0.17.20...0.17.21
Fixes
- Adjusted rules Spryker/ruleset.xml to fix false negative error.
0.17.20
Included commits: 0.17.19...0.17.20
Fixes
- Adjusted
SprykerStrict/ruleset.xml
to fixERROR: Ruleset invalid. Property "enableNeverTypeHint" does not exist on sniff SprykerStrict.TypeHints.ParameterTypeHint
error.
0.17.19
Included commits: 0.17.18...0.17.19
Improvements
- Added PHP 8.2 support.
- Allow
Spryker.Namespaces.SprykerNamespace
to be used in a more generic context. - Any custom repository using PSR-4 namespacing can now also be used with this to check the namespace vs file name.
<rule ref="Spryker.Namespaces.SprykerNamespace">
<properties>
<property name="namespace" value="App"/>
<property name="isRoot" value="true"/>
</properties>
</rule>
It would then validate your class files within src/
:
- file name
src/Some/Sub/MyClass.php
would then have to match FQCNApp\\Some\\Sub\\MyClass
inside
Note: If not further specific, it will still only check Spryker core files here for now and skip all other class files.