Tomas Votruba
d467876da4
add parent-property test ( #3910 )
2020-08-05 01:47:31 +02:00
Tomas Votruba
4c05dcd9d0
Rename StaticCallToAnotherServiceConstructorInjectionRector to StaticCallToMethodCall ( #3909 )
2020-08-05 00:56:59 +02:00
dobryy
7baec08138
Check that Recipe node types are imported ( #3904 )
...
* Check that Recipe node types are imported
* [rector] Check that Recipe node types are imported
* [cs] Check that Recipe node types are imported
* Update packages/rector-generator/src/ValueObject/Configuration.php
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
* Use `is_a` instead of `class_exists` in order to also check whether node type implements \PhpParser\Node interface
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-08-04 22:34:24 +00:00
Tomas Votruba
fa9f618866
skip configure unless in tests ( #3907 )
2020-08-04 19:12:46 +00:00
Tomas Votruba
7212366606
[Naming] Decouple RenameParamToMatchTypeRector ( #3906 )
...
* [Naming] Decouple RenameParamToMatchTypeRector
* remove overrlaping useless test fixtures
* [rector] remove overrlaping useless test fixtures
* [cs] remove overrlaping useless test fixtures
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 18:30:31 +00:00
Marek Šimeček
d23ccc9038
method call remover fix ( #3905 )
...
Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
2020-08-04 19:42:23 +02:00
Tomas Votruba
f322e4110c
[Generic] skip static method in FuncCallToMethodCallRector ( #3901 )
2020-08-04 13:37:29 +00:00
Tomas Votruba
b2054a32fc
Provide existing expression to get type ( #3899 )
...
* add support to provide existing expression instead of addgin a property with type
* [rector] add support to provide existing expression instead of addgin a property with type
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 13:12:43 +00:00
Tomas Votruba
484185aa8d
[SOLID] Skip property that is being changed by func call ( #3898 )
...
* add skip end function test case
* skip conversion of end() property
2020-08-04 13:02:12 +00:00
Tomas Votruba
3ddf965146
FunctionTo* correction renames, add PHPStan rule to check correct category of rule ( #3896 )
...
* rename Function* to Func* rector rule
* [Utils] Add RequireRectorCategoryByGetNodeTypesRule
* [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes
* [rector] [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 10:02:17 +00:00
Tomas Votruba
7cda57615c
rename FunctionToStaticCallRector to FuncCallToStaticCallRector ( #3895 )
...
* rename FunctionToStaticCallRector to FuncCallToStaticCallRector
* rename FunctionToNewRector to FuncCallToNewRector
* remove RenameFuncCallToStaticCallRector, duplicate of FuncCallToStaticCallRector
2020-08-04 08:25:41 +00:00
Tomas Votruba
97de8eb625
[Generic] FuncCallToMethodCall only in case of parent class ( #3894 )
...
* [Generic] Improve FuncCallToMethodCallRector
* [rector] [Generic] Improve FuncCallToMethodCallRector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 23:58:03 +00:00
TomasVotruba
5789ef39d5
update docs
2020-08-04 00:21:59 +02:00
Tomas Votruba
c9bb13d7ae
[Architecture] fix repository property ( #3888 )
...
* [Architecture] Fix moving repository to constructor extra property
* [rector] [Architecture] Fix moving repository to constructor extra property
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 19:47:08 +00:00
Tomas Votruba
09f67341ee
Add set-path constant support ( #3886 )
2020-08-03 21:14:41 +02:00
Tomas Votruba
c7f8ff4344
[TypeDeclaration] Skip typed property for @var adding ( #3885 )
2020-08-03 18:34:15 +00:00
Tomas Votruba
b61d22d56e
[Naming] Allow uuid to have name id ( #3883 )
...
* [Naming] Allow uuid to have name id
* add REPOSITORY_AS_SERVICE set
* [rector] add REPOSITORY_AS_SERVICE set
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 17:52:40 +00:00
Tomas Votruba
2bd1eac705
use dev nette deps to resolve form/application types ( #3879 )
v0.7.61
2020-08-03 08:51:44 +00:00
TomasVotruba
3ff6a971b7
add sponsor
2020-08-03 09:38:45 +02:00
Tomas Votruba
e35131524c
[Nette 3.0] Various rules updates ( #3878 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 09:26:01 +02:00
Tomas Votruba
39ec802963
[NetteCodeQuality] Fix unset, on purpose ( #3877 )
v0.7.60
2020-08-02 19:54:15 +02:00
Tomas Votruba
552b97d90e
add param type test case ( #3876 )
2020-08-02 16:58:56 +00:00
Tomas Votruba
e7429d96a4
make use of constant ( #3875 )
2020-08-02 13:17:33 +00:00
Tomas Votruba
b99a3cbdb2
add case with type form ( #3874 )
2020-08-02 12:58:14 +00:00
Tomas Votruba
bb6a53fef0
[NetteCodeQuality] Skip isset on form input + multiplier check ( #3872 )
2020-08-02 12:57:05 +02:00
Tomas Votruba
ee957111c4
fix import slash ( #3871 )
2020-08-02 10:04:46 +00:00
Tomas Votruba
91bda1b75b
[NetteCodeQuality] Get component ( #3870 )
2020-08-02 11:39:52 +02:00
Tomas Votruba
6186cdeab7
skip form ( #3869 )
v0.7.59
2020-08-02 01:24:58 +02:00
Tomas Votruba
62ac58e60d
add failing test case + add support for previous assign type dim fetch ( #3868 )
v0.7.58
2020-08-02 00:57:35 +02:00
Tomas Votruba
fa2caf77ed
[NetteCodeQuality] Add ArrayAccessSetControlToAddComponentMethodCallRector ( #3867 )
2020-08-02 00:18:40 +02:00
Tomas Votruba
a84528af9e
[Docs] Show constants over values ( #3866 )
...
* [docs] decouple RectorCodeSamplePrinter
* decopule printers
* make sure constnat are used in docs
* update docs
2020-08-01 20:55:31 +00:00
Tomas Votruba
5f6d66d8c1
[ci] enable defluent set ( #3865 )
2020-08-01 21:36:47 +02:00
Tomas Votruba
324c2b2192
[MagicDisclosure] fixes ( #3863 )
2020-08-01 18:59:36 +02:00
TomasVotruba
552a3a9032
update docs
2020-08-01 18:26:17 +02:00
Tomas Votruba
800abda3d2
[MagicDisclosure] Improve naming ( #3862 )
...
* add FluentChain keywords together, to make easier to find the classes
* decopule AbstractFluentChainMethodCallRector
2020-08-01 15:34:08 +00:00
Tomas Votruba
4624778cb0
[MagicDisclosure] Fluent refactoring ( #3861 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-01 16:57:37 +02:00
Tomas Votruba
55acb3578a
[MagicDisclosure] Add SetterOnSetterMethodCallToStandaloneAssignRector ( #3860 )
...
* [MagicDisclosure] Add MethodCallOnSetterMethodCallToStandaloneAssignRector
* merge ChainMethodCallManipulator to ChainMethodCallNodeAnalyzer for better DX
* [MagicDisclosure] Add in arg defluent
* rebase
2020-08-01 11:41:16 +00:00
Marek Šimeček
ab8d290b14
method call remover rector ( #3850 )
...
Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
2020-08-01 11:49:32 +02:00
Tomas Votruba
8c5fdca387
[MagicDisclosure] Add support for child parent class types ( #3859 )
2020-08-01 10:03:21 +02:00
Tomas Votruba
631fa9449f
[MagicDisclosure] Drop type scoping from ReturnThisRemoveRector, as always localy scope ( #3858 )
2020-08-01 09:06:10 +02:00
Zing
578bfaf38c
[RectorGenerator] Fix trailing comma in function calls error in php 7.2 ( #3857 )
2020-08-01 09:05:05 +02:00
Tomas Votruba
8b42e67744
[MagicDisclosure] Skip getters ( #3856 )
2020-08-01 00:01:52 +00:00
Tomas Votruba
20e28ea763
[cig Improve workflow for squash commits ( #3855 )
2020-08-01 01:39:40 +02:00
Tomas Votruba
86c2958501
[MagicDisclosure] Add last method with differnt type support ( #3854 )
2020-07-31 23:36:13 +00:00
Tomas Votruba
76b4ab7586
[Defluent] New set + various improvements ( #3853 )
...
* remove dead-else branch
* add defluent set
* fix type to match
* use constants over strings
* fixup! use constants over strings
* Add fluent as arg support to DefluentMethodCallRector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-07-31 23:08:16 +00:00
fsok
fbedce34d7
change return type of resolveClassConstFetch to mixed ( #3852 )
2020-07-31 22:01:48 +00:00
TomasVotruba
c463b08d53
fix inner type override
v0.7.57
2020-07-31 23:41:41 +02:00
dobryy
3aa2fc8727
[Order] Order properties and constants with respect of complexity and position ( #3826 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-07-31 22:20:45 +02:00
kodiakhq[bot]
d444e5f8ce
Merge pull request #3847 from rectorphp/chain-return-type-protect-parent
...
[MagicRemoval] Improve rules
2020-07-31 17:09:14 +00:00
TomasVotruba
ff8d6d265b
[MagicDisclosure] fluent removal improvements
2020-07-31 19:04:51 +02:00