656 Commits

Author SHA1 Message Date
Tomas Votruba
d7353baf2c
Misc cleanup (#5456)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-08 12:33:17 +00:00
Tomas Votruba
e9cdf37d16
Decopule nodes docs generator (#5453)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-08 02:04:48 +01:00
Tomas Votruba
fd8fc59ce1
[PHPStanExtensions] Move decoupled KeepRectorNamespaceForRectorRule (#5451) 2021-02-07 21:22:03 +00:00
Abdul Malik Ikhsan
4aea155212
[PHPStan] PHPStan ignore errors clean up (#5446) 2021-02-07 19:24:50 +01:00
Tomas Votruba
e04d820bc5
[CodeQuality] Improve CompactToVariablesRector to cover previously defined array (#5424) 2021-02-05 12:40:28 +00:00
Abdul Malik Ikhsan
aa284fe870
[CodeQuality] Reduce ForToForeachRector complexity (#5421)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-05 12:36:42 +01:00
Abdul Malik Ikhsan
51a14cc28f
[Renaming] Do not update target new namespace exists on RenameClassRector (#5416) 2021-02-03 22:30:40 +01:00
TomasVotruba
5ff1d911a3 fix typo in phsptan.neon 2021-02-01 00:31:33 +01:00
TomasVotruba
9b3c4fca20 use constants fix 2021-01-31 21:06:14 +01:00
Tomas Votruba
e2757242be
Various stabilizations (#5381) 2021-01-30 20:30:37 +00:00
Tomas Votruba
c8da4517ec
drop addBareTag() method (#5379) 2021-01-30 18:12:24 +00:00
Tomas Votruba
e1310abebb
[Nette 3.0] Add #[Inject] attribute (#5376) 2021-01-30 15:06:43 +00:00
Tomas Votruba
f9fdf2caaf
decopule AbstractTemporaryRector that does not requires rule definition (#5352)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-28 19:52:11 +00:00
Abdul Malik Ikhsan
85af424e23
[PHPStan] Typo fix: Refator -> Refactor (#5344) 2021-01-28 16:48:01 +01:00
Abdul Malik Ikhsan
4ce73a2867
[NodeTypeResolver] Handle PropertyFetchTypeResolver on PropertyProperty resolution (#5334)
Co-authored-by: Vašek Henzl <vasek.henzl@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-27 17:00:42 +01:00
Tomas Votruba
00d6c60ab1
[ComposerRector] Remove unused MovePackageToRequireComposerRector and MovePackageToRequireDevComposerRector rules (#5321) 2021-01-26 02:51:31 +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
94dedf4bb3
[PHP 7.0] Update self in final class (#5304) 2021-01-24 20:12:02 +00:00
Tomas Votruba
87072b597d
PHP 7.4 8 typo (#5290) 2021-01-22 23:11:10 +00:00
Tomas Votruba
0dc20048ae
Cleanup too detailed order rules + add TypedPropertyFromStrictConstructorRector (#5288) 2021-01-22 18:47:02 +00:00
Tomas Votruba
8b6b1a81e8
misc (#5276)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-21 21:58:26 +01:00
Abdul Malik Ikhsan
bf94f4c420
[Performance] Handle PreslashSimpleFunctionRector on Option::AUTO_IMPORT_NAMES => true (#5268)
Co-authored-by: Pierre <pierre@pcservice.co.za>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-21 14:06:03 +01:00
Tomas Votruba
87494ce3a6
Print only changed docblocks 🎉🎉🎉 (#5251) 2021-01-20 16:17:59 +00:00
Tomas Votruba
34168ff9d8
various cherry picks (#5248) 2021-01-19 23:29:52 +00:00
Tomas Votruba
81eeb2771b
Various cherry-pick (#5243)
* [Transform] Add VariableMethodCallToServiceCallRector

* use direct phpdocinfo

* cleanup

* narrow DoctrinePropertyAnalyzer

* misc
2021-01-19 20:39:57 +00:00
Tomas Votruba
4b7f6f4a72
use PhpDocTagRemoer as a service (#5242)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-19 19:45:30 +00:00
Tomas Votruba
133322cc65
cherry pick (#5238)
* misc

* decopule DocBlockManipulator misc

* make use static instnaceof

* add markAsChanged() to PhpDocInfo

* decopule DocBlockTagReplacer

* change static annotation naming to service

* misc
2021-01-19 15:03:26 +00:00
Abdul Malik Ikhsan
14def70268
[PHPStan] Clean up duplicate PHPStan config (#5232)
* [PHPStan] Clean up PHPstan config

* phpstan

* phpstan
2021-01-19 12:19:20 +01:00
Tomas Votruba
bbe758ab60
phpdoc info refactor part 4 (#5231)
* remove useless docblocks

* misc

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-19 01:15:32 +00:00
Tomas Votruba
ad9448018c
[PhpDocInfo Decouple] Use php doc info from factories, not from attribute (#5229)
* use single method to create docs

* use phpDocInfoFactory instead of getAttribte php doc info in Rectors

* move callig to phpDocInfoFactory

* misc
2021-01-18 21:45:13 +00:00
Tomas Votruba
5105fd0355
[Composer] Remove forgotten validation (#5219)
* [Composer] Remove forgotten validation

* skip duplicated method
2021-01-18 10:07:57 +00:00
Tomas Votruba
cfbe014d67
[PHP 7.3] Fix stirng retype on intersections (#5216)
* [PHP 7.3] Fix stirng retype on intersections

* remove unneeded command layer for showing not enough args

* make sure there is application

* misc
2021-01-17 23:39:13 +00:00
Tomas Votruba
ea1f7bd758
Lower class complexity (#5208)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-17 15:43:47 +00: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
c0105bde25
Change maximal Rector complexity to 35 to avoid hard coupling to Rector classes (#5206)
* complexity

* decopule GetSubscriberEventsClassMethodFactory and ListenerServiceDefinitionProvider

* decopule UnusedParameterResolver, AssertMethodCallFactory, PropertyFetchWithVariableReplacer

* decopule ParamAndArgFromArrayResolver

* decopule JsonArrayFactory and JsonEncodeStaticCallFactory

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-16 19:11:11 +00:00
Tomas Votruba
56409c5a3a
[phpstan] Remove unreported errors and duplicated methods (#5193)
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-15 21:27:36 +01:00
Abdul Malik Ikhsan
96986b5edb
[PHPStan] Clean up duplicated ignore error "Class cognitive complexity is \d+, keep it under 40" in phpstan.neon (#5192) 2021-01-15 16:12:56 +01:00
Tomas Votruba
58d97b9853
[Naming] Fix Param type Promoted Rename (#5188)
* [Naming] Make RenameParamToMatchTypeRector skip promoted property

* [Naming] Add property rename to RenamePropertyToMatchTypeRector

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-14 22:44:07 +00:00
Abdul Malik Ikhsan
55ee86cb90
[Docker] Install libicu-dev to allow install intl (#5186)
* [Docker] Install libicu-dev to allow install intl

* phpstan
2021-01-14 17:56:23 +01:00
Tomas Votruba
1cd0e1004f
add missing astral package (#5182) 2021-01-14 12:03:13 +00:00
Tomas Votruba
0f4da846a5
[SymfonyCodeQuality] Prevent route class override, add support for start with numbers (#5172) 2021-01-13 14:55:04 +00:00
Tomas Votruba
713915d1b2
Polishing composer rules (#5170)
* [Composer] Add check for existing compsore.json

* update composer package

* coding style

* various static fixes
2021-01-13 13:02:14 +00:00
Tomas Votruba
b604e1676c
[Privatization] Add ReplaceStringWithClassConstantRector (#5156)
* [Privatization] Add ReplaceStringWithClassConstantRector

* README: add to scoped
2021-01-12 13:41:47 +00:00
TomasVotruba
e71a107b1b [SymfonyCodeQuality] Create value object in one step 2021-01-12 01:04:45 +01:00
Tomas Votruba
6c11a254aa
[SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector (#5140)
* [SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector

* optimizations
2021-01-11 20:12:10 +00:00
Abdul Malik Ikhsan
de09409152
[mysql-to-mysqli] Handle second parameter on mysqli_query swap for sql - conn variable (#5130)
Co-authored-by: Martin <admin@phpcode.eu>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-11 12:12:46 +01:00
Tomas Votruba
bc0113dbd7
use templates (#5116) 2021-01-08 23:30:33 +01:00
Tomas Votruba
014c019449
[fixtures] require skip prefix on skipped files (#5079)
* skip unnecesary test case

* namespace corrections, skip prefix corrections

* hide for now

* skip new phpstan cases
2021-01-03 15:54:27 +00:00
Tomas Votruba
0f221f92a4
Add template annotation resolving support (#5019)
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
2020-12-28 13:01:27 +00:00
Tomas Votruba
d4883d44d9
[Prefixed Rector] Add package-scoper approach (#4559) 2020-12-26 00:17:31 +01:00