Skip to content

Releases: spryker/code-sniffer

0.17.28

25 Feb 15:25
3aaaf87
Compare
Choose a tag to compare

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

05 Feb 13:06
3ed9c1a
Compare
Choose a tag to compare

Included commits: 0.17.26...0.17.27

Improvements

  • Enabled the usage of null safe object operators.

0.17.26

03 Jan 17:45
be31dad
Compare
Choose a tag to compare

Included commits: 0.17.25...0.17.26

Improvements

  • Added SprykerFeature module types to supported namespaces.

0.17.25

20 Sep 09:34
4d26c64
Compare
Choose a tag to compare

Included commits: 0.17.24...0.17.25

Improvements

  • Added PHP 8.3 support.

0.17.24

06 Jun 13:34
c984469
Compare
Choose a tag to compare

Included commits: 0.17.23...0.17.24

Fixes

  • Adjusted DocBlockApiAnnotationSniff to fix the false negative errors when declaring the Specification annotation.

0.17.23

22 Mar 10:02
1cb5550
Compare
Choose a tag to compare

Included commits: 0.17.22...0.17.23

Fixes

  • Adjusted QueryContainerMethodAnnotationSniff to remove deprecated getQueryContainer() annotation validation.

0.17.22

04 Mar 14:39
75fd357
Compare
Choose a tag to compare

Included commits: 0.17.21...0.17.22

Fixes

  • Adjusted configuration so it supports Constructor Property Promotion.

0.17.21

30 Jan 11:40
a1ab7fa
Compare
Choose a tag to compare

Included commits: 0.17.20...0.17.21

Fixes

  • Adjusted rules Spryker/ruleset.xml to fix false negative error.

0.17.20

04 Jan 17:28
5374a2c
Compare
Choose a tag to compare

Included commits: 0.17.19...0.17.20

Fixes

  • Adjusted SprykerStrict/ruleset.xml to fix ERROR: Ruleset invalid. Property "enableNeverTypeHint" does not exist on sniff SprykerStrict.TypeHints.ParameterTypeHint error.

0.17.19

02 Nov 19:16
2156a1d
Compare
Choose a tag to compare

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 FQCN App\\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.