Skip to content

Releases: php-fig-rectified/psr2r-sniffer

2.1.2

25 Dec 19:19
a63fb4d
Compare
Choose a tag to compare

Fixes

  • Fix broken unused uses sniff.
  • Fix ternary spacing sniff.

2.1.1

15 Nov 04:25
8a751c2
Compare
Choose a tag to compare

Fixes

  • Skip FQCN to use statement refactor requirement for attributes

2.1.0

30 Mar 20:50
c9e4659
Compare
Choose a tag to compare

Improvements

  • Added new PSR4 sniff

Full Changelog: 2.0.0...2.1.0

2.0.0

15 Oct 01:06
Compare
Choose a tag to compare

PHP 8.1+ release

Includes quite a few improvements including type safety.
Currently, PSR2R ships with over 190 sniffs.

1.5.1

23 Sep 19:21
Compare
Choose a tag to compare

Fixes

Reverted "silence removal of SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName" for now as there is no way to ignore Attributes for now.

1.5.0

01 Jan 15:40
Compare
Choose a tag to compare

Improvements

  • Remove silencing of SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly
  • Fix up DisallowTrailingComma sniffs

1.4.0

15 Aug 17:59
Compare
Choose a tag to compare

Improvements

Allow for new slevomat/coding-standard 8.x.
This is to allow for all new fixes of that series to be used by everyone.

Please note
You need to add the php_version config in your root phpcs.xml file before upgrading.

E.g. if you are using >= 7.4 in composer as PHP min requirement:

<config name="php_version" value="70400"/>

The reason is that it would otherwise execute your local PHP version (e.g. 8.1) and modify the code according to "too new language features".

1.3.5

19 Jul 08:29
3ba325c
Compare
Choose a tag to compare

Fixes

  • Fixed DocBlockReturnSelfSniff handling of self

Improvements

  • Added enum support
  • Updated whitelisted tags to be consistent with PHPUnit 9

1.3.4

24 Nov 15:41
Compare
Choose a tag to compare

Fixes

Re-added fixed TabIndent sniff.

1.3.3

19 Nov 16:59
Compare
Choose a tag to compare

Fixes

Replace faulty sniff with working one.