Skip to content

0.13.0

Choose a tag to compare

@dereuromark dereuromark released this 12 Oct 17:59
· 636 commits to master since this release
25dac0e

Improvements

  • Added ClassConstantVisibility sniff (for now without autofixing).
  • Added DocBlockConstructor sniff for removing noise in constructors.
  • Added DocBlockStructure sniff for normalized doc blocks.
  • Also enabled callables for SprykerAnnotation sniff.
  • Added NewWithParentheses sniff for consistent object instantiation.
  • Added ShortList sniff for PHP 7.1 list usage.
  • Added DisallowOneLinePropertyDocComment for normalized doc blocks.
  • Added DuplicateAssignmentToVariable sniff.
  • DisallowContinueWithoutIntegerOperandInSwitch sniff for PHP7.3 future compatability.

Bugfixes

  • Fixed Spryker file doc block whitespacing.
  • Fixed DocBlockApiAnnotationSniff for Spryker @api annotations.

Notes

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.