25 Commits

Author SHA1 Message Date
Tomas Votruba
7a5cf0ed5a
[PSR-4] Fix declare for NormalizeNamespaceByPSR4ComposerAutoloadFileSystemRector (#4332) 2020-09-29 21:16:47 +00:00
Igor
f2ecdeb0b1
[Naming] Foreach over "data", renames to "datum" (#4221)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-15 10:23:13 +02:00
Tomas Votruba
7ac228c638
[CI] Add type-declaration set (#4089)
* [CI] Add type-declaration set

* [rector] [CI] Add type-declaration set

* [cs] [CI] Add type-declaration set

* skip nullable void

* add anonymous parent/interface support

* refactor MultiExceptionCatchRector to use Catch_ over integers

* type fixes

* fix unoin array type override

* remove unused test cases

* drop overcomplicated InlineValidationRulesToArrayDefinitionRector

* skip assign on var

* [rector] skip assign on var

* [cs] skip assign on var

* [rector] [cs] skip assign on var

* skip assign on var

* fixes

* [rector] fixes

* [cs] fixes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Tomas Votruba
1c4b510513
PHPStan: require iterable types (#3936)
* phpstan: require iterable types

* add link on relative path and line

* fix missing class type

* typed array in Rector code + add data provide support resolver

* remove duplicated set

* drop unused yaml ecs config

* add out-of-the-box directory for 3rd party packages

* static fixes

* [rector] static fixes

* [cs] static fixes

* [rector] [cs] static fixes

* generic types

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
dobryy
411d76f9a9
[Order] Make OrderPrivateMethodsByUseRector process file in one run u… (#3889)
* [Order] Make OrderPrivateMethodsByUseRector process file in one run using while loop

* [Order] Enable rule in CI

* [rector] [Order] Enable rule in CI

* [cs] [Order] Enable rule in CI

* [Order] Use constant for number of max attempts and throw exception when exceeded.

* [rector] [Order] Use constant for number of max attempts and throw exception when exceeded.

* [cs] [Order] Use constant for number of max attempts and throw exception when exceeded.

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 22:45:36 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
TomasVotruba
0188d802d2 use SmartFileSystem over Nette FileSystem 2020-07-24 14:39:10 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
baee588461 add rename neon/yaml file content case 2020-06-21 19:03:39 +02:00
TomasVotruba
c0cc31aa7e fix php parser factory name 2020-06-21 13:47:24 +02:00
TomasVotruba
fac932a8bd cleanup 2020-06-21 11:46:52 +02:00
TomasVotruba
379aa80679 cleanup AbstractFileSystemRector 2020-06-21 11:34:08 +02:00
TomasVotruba
ff4c3cc8ce decopule NodesWithFileDestinationPrinter 2020-06-21 02:31:27 +02:00
TomasVotruba
14a72f15d8 remove MoveAndRenameNamespaceRector, not tested and not working, prefer class rename 2020-06-18 22:34:25 +02:00
TomasVotruba
b5f0129c84 complete missing code samples 2020-06-16 16:20:17 +02:00
TomasVotruba
aff10cf014 [Autodiscovery] Do not nest already correct name 2020-06-10 19:59:15 +02:00
TomasVotruba
8a28581ce1 [PSR-4] Add NormalizeNamespaceByPSR4ComposerAutoloadFileSystemRector 2020-05-14 01:42:17 +02:00
rector-bot
aa5b5d2ed6 fixup! [PSR-4] Add test for NormalizeNamespaceByPSR4ComposerAutoloadRector 2020-05-13 22:38:09 +00:00
TomasVotruba
ffeb6c9f53 [PSR-4] Add test for NormalizeNamespaceByPSR4ComposerAutoloadRector 2020-05-14 00:35:00 +02:00
TomasVotruba
e81044fd3b decouple ClassRenamer 2020-05-11 18:08:13 +02:00
TomasVotruba
db7248135a add multi-paths support 2020-05-10 22:33:39 +02:00
TomasVotruba
f63e4424b8 move MultipleClassFileToPsr4ClassesRector to PSR4 2020-05-10 00:54:56 +02:00
TomasVotruba
c64a71ecad phsptan fixes 2020-04-25 16:45:36 +02:00
TomasVotruba
1ecd30818a remove unused print method 2020-04-20 09:45:15 +02:00
TomasVotruba
3e5dd77bb6 move Rector-rule based packages from /packages to /rules 2020-02-11 13:41:37 +01:00