287 Commits

Author SHA1 Message Date
Tomas Votruba
e2757242be
Various stabilizations (#5381) 2021-01-30 20:30:37 +00:00
Tomas Votruba
737b6471c2
[Performance] [Polyfill] Move to DeadCode (#5380) 2021-01-30 19:56:32 +00:00
Tomas Votruba
2df4732c6c
Move Architecture to Doctrine, improve a bit (#5374) 2021-01-30 08:57:35 +00:00
Tomas Votruba
024ec4ba93
[Generics] Add GenericsPHPStormMethodAnnotationRector (#5365)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-29 17:24:20 +01:00
Tomas Votruba
f1a70bd271
[Removing] Move RemoveInterfacesRector here (#5361) 2021-01-29 10:38:59 +00:00
Tomas Votruba
53102c9c29
[Removing] Init new set (#5360)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-29 08:08:55 +00:00
Tomas Votruba
1f61ef7160
[Generic] specialize generic rules (#5355) 2021-01-29 00:29:12 +00:00
Tomas Votruba
34c0f08969
[Generic] Split rules to their particular categories (#5354)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-29 00:32:20 +01:00
Tomas Votruba
8e3e3fd6e1
add CoreRectorInterface and PhpCoreRectorInterface to allow PhpRectorInterface to be RectorInterface without getDefinition() (#5348) 2021-01-28 19:26:56 +01:00
Tomas Votruba
fced0ca087
[Symfony] Add Symfony 5.1 set (#5331)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-27 15:09:08 +01:00
Tomas Votruba
e00106ee49
[phpstan] Make ComposerRectorInterface child classes respetc the "ComposerRector" suffix (#5319) 2021-01-26 01:32:23 +00:00
Tomas Votruba
8d600ce412
[docs] regenerate (#5316) 2021-01-25 18:59:06 +00:00
github-actions[bot]
ad256edcad
[automated] Re-Generate Nodes/Rectors Documentation (#5296)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-24 10:07:23 +01:00
vladyslavstartsev
10b96a0b97
Make example of ReplaceStringWithClassConstantRector more correct (#5269)
* Make example of ReplaceStringWithClassConstantRector more correct

- `argument position` and `class with constants` are swapped
- `argument position` starts with zero (0), so `1` is the second argument

* also fix example in `Rector`ing class
2021-01-23 14:51:23 +02:00
Tomas Votruba
ea1f7bd758
Lower class complexity (#5208)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-17 15:43:47 +00:00
github-actions[bot]
d93900b56a
[automated] Re-Generate Nodes/Rectors Documentation (#5211)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-17 14:32:41 +01:00
Tomas Votruba
024a97d019
[RemovingStatic] Decouple static (#5207)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-16 22:45:18 +01:00
Tomas Votruba
04db98620a
Refactor composer modifier to ComposerRector (#5198) 2021-01-16 13:23:37 +01:00
github-actions[bot]
fc9acd9c21
[automated] Re-Generate Nodes/Rectors Documentation (#5178)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-14 11:10:33 +01:00
github-actions[bot]
19c47b9f1f
[automated] Re-Generate Nodes/Rectors Documentation (#5162)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-13 02:25:45 +01:00
github-actions[bot]
f40d602d43
[automated] Re-Generate Nodes/Rectors Documentation (#5150)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-12 12:52:10 +01:00
github-actions[bot]
f1d4a4a671
[automated] Re-Generate Nodes/Rectors Documentation (#5118)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-09 12:16:22 +01:00
Tomas Votruba
27f2fad0c0
[DeadCode] Fix removing native interface (#5113)
* [Restoratoin] Skip native interface from removing

* move RemoveUselessJustForSakeInterfaceRector to dead code category

* remove interface name pattern

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-08 14:34:54 +00:00
Floris Luiten
39a6b79f30
Fixed typo "lenght" (#5096)
* Fixed typo in docs "lenght" to "length"

* Fixed typo in class constant "lenght" to "length"

* Changed "lenght" instead of "length", fixing bug in class_exists using incorrect classname
2021-01-06 03:06:16 +07:00
github-actions[bot]
17f47bd5c4
[automated] Re-Generate Nodes/Rectors Documentation (#5082)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-04 14:09:38 +01:00
github-actions[bot]
34c3c3a67c
[automated] Re-Generate Nodes/Rectors Documentation (#5061)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-01 19:59:23 +01:00
Tomas Votruba
a4f8a23ecf
[CodeQuality] Move MoveVariableDeclarationNearReferenceRector (#4992) 2020-12-25 17:48:15 +01:00
Tomas Votruba
db89b5eefa
[CodeQuality] Move MoveVariableDeclarationNearReferenceRector (#4989)
* [CodeQuality] Move MoveVariableDeclarationNearReferenceRector

* move code-quality-strict rules to own namespace

* move MoveVariableDeclarationNearReferenceRector to CodeQualityStrict

* add ClassConstFetchFactory

* static fixes
2020-12-25 16:22:19 +00:00
Tomas Votruba
a2dbaedb0e
[Privatization] Move MakeUnusedClassesWithChildrenAbstractRector here (#4987) 2020-12-25 15:45:17 +01:00
Tomas Votruba
bfcdd22a7c
[Privatization] Move FinalizeClassesWithoutChildrenRector here (#4986) 2020-12-25 14:59:14 +01:00
Tomas Votruba
cffd7ea0ac
[CodingStyle] Move PHPStormVarAnnotationRector (#4985)
* [CodingStyle] Move PHPStormVarAnnotationRector

* [ci-review] Rector Rectify

* [DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here (#4984)

* [DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>

* [ci-review] Rector Rectify

* cleanup docs

* static fixes

* [ci-review] Rector Rectify

* remove duplicated

* multi use case

* misc

* [ci-review] Rector Rectify

* fixes

* remove order set, slow

* move UseMessageVariableForSprintfInSymfonyStyleRector from solid set to coding-style

* make unique-named variables to prevent accidental override and improve readability

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 13:20:13 +00:00
Tomas Votruba
61b72a8d7c
[DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here (#4984)
* [DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 00:56:59 +00:00
Tomas Votruba
d465ec83e2
[DeadCode] Move RecastingRemovalRector from PHPStan set (#4983)
* [DeadCode] Move RecastingRemovalRector from PHPStan set

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 00:22:45 +00:00
Tomas Votruba
c5d258e0cc
[Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough (#4939)
* [Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough

* fixup! [Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough
2020-12-22 15:48:25 +00:00
Tomas Votruba
eddb2b29c9
[EarlyReturn] Decouple new rules (#4868) 2020-12-12 16:59:09 +00:00
github-actions[bot]
fb87c23e07
[automated] Re-Generate Nodes/Rectors Documentation (#4803)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-06 11:19:50 +01:00
Tomas Votruba
dc61d2fecf
add docblock on downgrade by default (#4799)
* add docblock on downgrade by default

* update docs

* drop no docblock test
2020-12-05 22:33:27 +00:00
github-actions[bot]
34881de2f5
[automated] Re-Generate Nodes/Rectors Documentation (#4783)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-05 11:08:31 +01:00
Tomas Votruba
520b8a9a85
[DeadDocBlock] decouple return and param rules (#4782)
* decopule return and parma rules

* enable in CI

* cleanup

* protected class-string vs string
2020-12-05 00:31:05 +00:00
github-actions[bot]
9a52045475
[automated] Re-Generate Nodes/Rectors Documentation (#4767)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-04 01:51:32 +01:00
github-actions[bot]
1dc13433a5
[automated] Re-Generate Nodes/Rectors Documentation (#4759)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-03 09:32:04 +01:00
github-actions[bot]
481aa0d700
[automated] Re-Generate Nodes/Rectors Documentation (#4745)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-02 09:52:34 +01:00
github-actions[bot]
bb69160bd8
[automated] Re-Generate Nodes/Rectors Documentation (#4739)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-01 14:40:16 +01:00
github-actions[bot]
d82ddcc4ba
[automated] Re-Generate Nodes/Rectors Documentation (#4722)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-28 19:06:05 +01:00
Tomas Votruba
51ab276d57
[Downgrade PHP 7.1] feature/downgrade iterable pseudo type (#4706)
* [Downgrade PHP 7.1] iterable pseudo-type

* fix PHP version type

* cleanup

* static fixes

Co-authored-by: Norbert Orzechowicz <norbert@orzechowicz.pl>
2020-11-27 12:00:56 +00:00
Tomas Votruba
0993088cda
[SymfonyPhpConfig] Use Symplify package instead + simplify set validation (#4694)
* [SymfonyPhpConfig] Use Symplify package instead

* [SymfonyPhpConfig] Drop forgotten custom-jobs Rectors

* [CI] simplify set validation

* from inline functions to Static class

* cleanup

* decouple rector.php to allow static analysis and coding standards
2020-11-26 16:44:27 +00:00
Tomas Votruba
0456cc088c
[Docs] Improve rule doc generator to generat rules_overview with categories (#4688)
* numbers

* update ECS config to Symplify 9

* regenerate rules with categorize

* [CI] disable automated rebase, as not working propperly

* update misc
2020-11-25 21:34:34 +00:00
github-actions[bot]
46388345b1
[automated] Re-Generate Nodes/Rectors Documentation (#4685)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-25 01:42:23 +01:00
HDVinnie
3fc5163f01
update: drop migrify/php-config-printer for symplify/php-config-printer (#4684)
* update: composer.json

- Package migrify/php-config-printer is abandoned. Using symplify/php-config-printer instead.

* update: migrify to symplify

* update: composer.json

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-11-24 16:14:21 +00:00
github-actions[bot]
64ab0a65b4
[automated] Re-Generate Nodes/Rectors Documentation (#4682)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-24 01:49:19 +01:00