Skip to content

Releases: php-static-analysis/rector-rule

0.5.0

Choose a tag to compare

@carlos-granados carlos-granados released this 04 Jun 16:18
16c3b97

Store all attribute parameters to make them easier to use without needing reflection

0.4.1

Choose a tag to compare

@carlos-granados carlos-granados released this 27 Jan 23:25

Update to Psalm 6

0.4.0

Choose a tag to compare

@carlos-granados carlos-granados released this 29 Dec 20:04

New version that supports:

  • PHP Parser V5
  • PHPStan 2.0
  • Future Psalm 6
  • Rector 2.0
  • PHP 8.4

The min php version is now set to 8.1

It also adds full integration with Rector, allowing you to apply Rector rules to files which use the PHP Static Analysis Attributes 🎉

0.3.1

Choose a tag to compare

@carlos-granados carlos-granados released this 13 Sep 07:42

Add Assert, AssertIfFalse and AssertIfTrue attributes

0.3.0

Choose a tag to compare

@carlos-granados carlos-granados released this 16 Jun 08:37

Update for PHPStan 1.11

0.2.2

Choose a tag to compare

@carlos-granados carlos-granados released this 05 Mar 11:48

Add DefineType and ImportType attributes

0.2.1

Choose a tag to compare

@carlos-granados carlos-granados released this 28 Feb 18:19

Add Immutable attribute and the possibility to exclude some annotations

0.2.0

Choose a tag to compare

@carlos-granados carlos-granados released this 26 Feb 10:48

Implement basic set of attributes:

Attribute PHPDoc Annotations
Deprecated @deprecated
Impure @impure
Internal @internal
IsReadOnly @readonly
Method @method
Mixin @mixin
Param @param
ParamOut @param-out
Property @property @var
PropertyRead @property-read
PropertyWrite @property-write
Pure @pure
RequireExtends @require-extends
RequireImplements @require-implements
Returns @return
SelfOut @self-out @this-out
Template @template
TemplateContravariant @template-contravariant
TemplateCovariant @template-covariant
TemplateExtends @extends @template-extends
TemplateImplements @implements @template-implements
TemplateUse @use @template-use
Throws @throws
Type @var @return

0.1.16

Choose a tag to compare

@carlos-granados carlos-granados released this 26 Feb 07:46

Add Throws attribute

0.1.15

Choose a tag to compare

@carlos-granados carlos-granados released this 25 Feb 15:17

Add Pure and Impure attributes