Commit Graph

604 Commits

Author SHA1 Message Date
Tomas Votruba 3313a231b7 Updated Rector to commit bb609b28e327ca1fb7827b6bc548013d19a2cf4e
bb609b28e3 [Core] Always reset stopTraversal to false on next Rector visit (#4182)
2023-06-11 14:17:34 +00:00
Tomas Votruba 53778ac6ff Updated Rector to commit 77aeaa4dcc2fc99070999af7a28d17c4d078a4b5
77aeaa4dcc Remove RemoveEmptyMethodCallRector as better handled by PHPStan (#4161)
2023-06-10 13:02:37 +00:00
Tomas Votruba f67dcbaeac Updated Rector to commit f8c6c5cb6a23ce48ddd576dffceff52d440c4a07
f8c6c5cb6a Remove parent node from RenameMethodRector (#4154)
2023-06-10 09:11:14 +00:00
Tomas Votruba 276b450e8a Updated Rector to commit bc61ac2b0a95c93a557ccfe4f371f361ec09ab2c
bc61ac2b0a Remove parent node from StringClassNameToClassConstantRector (#4145)
2023-06-10 06:35:34 +00:00
Tomas Votruba f82e30a026 Updated Rector to commit ae874efa148e6d5a031503892a6307824b4d7003
ae874efa14 Remove SourceLocatorProviderInterface as unused (#4126)
2023-06-08 22:00:17 +00:00
Tomas Votruba 075297ce56 Updated Rector to commit 0af705fb570340cb0e4fbc0b9e897b09bd172f5c
0af705fb57 debug
2023-06-06 16:41:24 +00:00
Tomas Votruba 81398086b3 Updated Rector to commit 1e4568bdae763335c904ecd3d03a79f1ac129d0f
1e4568bdae Avoid removing use with removeNode() in ClassRenamer (#4039)
2023-06-01 14:48:49 +00:00
Tomas Votruba 9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +00:00
Tomas Votruba d48ca72a44 Updated Rector to commit d9908088500d235348a84de13f96823bc03b4706
d990808850 Remove PARENT_NODE from PseudoNamespaceToNamespaceRector (#3988)
2023-05-27 10:31:41 +00:00
Tomas Votruba d3dfbb4638 Updated Rector to commit 2f84187dc1d6db09788adf8346339d6854902db5
2f84187dc1 Remove RenameNamespaceRector, better handle by IDE or explicit RenameClassRector (#3979)
2023-05-26 21:28:23 +00:00
Tomas Votruba d8c877db45 Updated Rector to commit 33d05d3b9ee7838d254edf58dbd05a355891b48b
33d05d3b9e Refactor RenameVariableToMatchMethodCallReturnTypeRector to StmtsAwareInterface (#3977)
2023-05-26 14:00:49 +00:00
Tomas Votruba 9496663b9b Updated Rector to commit 7a32610a70a03adf6824fec5f055a63b6355f56b
7a32610a70 [Util] Introduce FileHasher (#3833)
2023-05-14 18:24:01 +00:00
Tomas Votruba af39f1cc41 Updated Rector to commit 56e13466c3ba3c23c0eb5e7e3af6908433c0c6af
56e13466c3 [CI] Enable zend.assertions=1 on CI (#3823)
2023-05-13 16:44:37 +00:00
Tomas Votruba c8378bb7c9 Updated Rector to commit ed494161ee091037ea7cb791e569abb1bf2ff990
ed494161ee Drop AttributeKey::SCOPE in ClassRenamer (#3806)
2023-05-13 13:41:02 +00:00
Tomas Votruba 69f023883a Updated Rector to commit c6cb214aa518e02f9cc0a13f1bae638de114189d
c6cb214aa5 Revert Performance: Early return in PhpDocNode refactoring for class renames (#3509) (#3744)
2023-05-06 16:56:43 +00:00
Tomas Votruba 511bba65db Updated Rector to commit 48e431b52386ed8a200bc5f6e697fcf6f3a2db8f
48e431b523 Performance: Early return in PhpDocNode refactoring for class renames (#3509)
2023-05-06 16:33:33 +00:00
Tomas Votruba 65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba 107da04b98 Updated Rector to commit 08d93e01b9341fdea9a22f52dc5fbce542c62245
08d93e01b9 [automated] Apply Coding Standard (#3713)
2023-04-30 00:40:55 +00:00
Tomas Votruba 73330a66b6 Updated Rector to commit b3e269603f8d7162c906b2409497624661baa559
b3e269603f [Renaming] Prevent overly greed type resolving in RenamePropertyRector (#3700)
2023-04-28 11:58:31 +00:00
Tomas Votruba 2c70f375ca Updated Rector to commit 7d16e3d57e8942a535551e9c7d8725fc91329993
7d16e3d57e [Renaming] Improve performance of RenamePropertyRector (#3698)
2023-04-28 10:31:03 +00:00
Tomas Votruba 259585c967 Updated Rector to commit ea454bb871796a2e9aaf48e3d842c92245809818
ea454bb871 [Renaming] Improve performance of RenameFunctionRector (#3699)
2023-04-28 05:49:18 +00:00
Tomas Votruba d15c6b74f6 Updated Rector to commit f9aa52afe48fa20eb1328d4e9bf5acddde79d2b6
f9aa52afe4 [PSR4] Remove clone  on PseudoNamespaceToNamespaceRector (#3554)
2023-04-02 19:03:30 +00:00
Tomas Votruba 9038a0d99c Updated Rector to commit 1a91d04c5256e451c744eeb848aaa0182dd227c5
1a91d04c52 [CodeQuality] Add cast scalar support on ReturnTypeFromStrictScalarRector (#3544)
2023-04-01 10:14:17 +00:00
Tomas Votruba de30caff39 Updated Rector to commit 0f0b936c98b56f89c3ddf262f757dfd2a68853cb
0f0b936c98 Performance: Use faster hashing algo for cache key generation (#3508)
2023-03-27 08:10:28 +00:00
Tomas Votruba 0b3c5d9bcc Updated Rector to commit f22ddc8f18ef345d5e9c99cbb667548c3c854d7d
f22ddc8f18 Add not null compare to FlipTypeControlToUseExclusiveTypeRector (#3513)
2023-03-23 23:21:34 +00:00
Tomas Votruba b5afb126a3 Updated Rector to commit 5e29a35bb60f92bece6fede8080645e7ba7fc421
5e29a35bb6 Performance: Reduce isObjectType calls (#3502)
2023-03-22 14:20:22 +00:00
Tomas Votruba 65a343d35a Updated Rector to commit 6cc0a40d5d64b45408f830563aa22c73a41a6e9e
6cc0a40d5d  [Renaming] Remove FileWithoutNamespace from getNodeTypes() on RenameNamespaceRector (#3475)
2023-03-12 01:48:24 +00:00
Tomas Votruba 019f8252db Updated Rector to commit a0a6b55350c8199858d63a7302653c8ff87d40ee
a0a6b55350 [Renaming] Remove FileWithoutNamespace from getNodeTypes() on RenameClassRector (#3470)
2023-03-10 15:23:02 +00:00
Tomas Votruba 84c00e601b Updated Rector to commit ed5caee5b1cdecf12b77b1f2944dde539a3b004f
ed5caee5b1 [Renaming] Remove Use_ from getNodeTypes() on RenameClassRector (#3464)
2023-03-08 14:09:44 +00:00
Tomas Votruba e6981ca53c Updated Rector to commit 4d9b7e841f026d0566ba7afa356503e7d4466e15
4d9b7e841f [Renaming] Remove RenameClassRector::processCleanUpUse() as already covered on ClassRenamingPostRector (#3463)
2023-03-08 07:33:37 +00:00
Tomas Votruba 7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba 90d627a739 Updated Rector to commit 75149b2fdba0ce29e899e6610db8a703f3d30090
75149b2fdb [Renaming] Skip rename as Namespace_ name on RenameClassRector (#3371)
2023-02-11 17:56:10 +00:00
Tomas Votruba 66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba 764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba 727b9f46f0 Updated Rector to commit bfa1891c50677b01136a9308fd3c3ecc12e267d9
bfa1891c50 [cleanup] Remove 73 unused public methods (#3245)
2022-12-23 17:10:25 +00:00
Tomas Votruba cc9debaefb Updated Rector to commit 135483f78fb5d4191190453b762906097024aa98
135483f78f [Privatization] Skip used by heredoc on ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3216)
2022-12-18 16:21:48 +00:00
Tomas Votruba a53b9ef444 Updated Rector to commit dfad0c3a53d7ee62aa0ea6e6feede26ada741c58
dfad0c3a53 RenameClassRector with callback support (#3023)
2022-12-17 14:41:49 +00:00
Tomas Votruba bd0997346d Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 16:54:58 +00:00
Tomas Votruba ff75474d25 Updated Rector to commit 39f43c01cbc34a8bb064f056d39f1b8d2bd7a152
39f43c01cb Use Symfony ~6.1.x to avoid crash on update vendor-patch (#3134)
2022-12-01 14:10:32 +00:00
Tomas Votruba 4a64f39171 Updated Rector to commit 7842486329539de6901544f0e50707b6a2aea29e
7842486329 Fix few rules reporting in case of no change (#3090)
2022-11-24 14:31:52 +00:00
Tomas Votruba 75e646ce54 Updated Rector to commit 6c7caa63c4025b47a382cd2e28b6f05fbcb55e71
6c7caa63c4 Reverts Use MethodCallRename directly (#3080)
2022-11-19 11:50:17 +00:00
Tomas Votruba 87bf8a85b4 Updated Rector to commit 31bf9e468a1c271296236e6363a4d7e69f7f73c1
31bf9e468a Use MethodCallRename directly (#3077)
2022-11-18 21:07:17 +00:00
Tomas Votruba ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba edd2c3657d Updated Rector to commit 71ffc807faa4ee0ec144d5a7b6051a7c86c730c8
71ffc807fa Update all classlike pseudo rector (#3002)
2022-10-18 11:35:10 +00:00
Tomas Votruba e87c848801 Updated Rector to commit ff4d797c73a51a3fb12cb644c6911ecd7313ec1b
ff4d797c73 [DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
2022-10-02 20:24:31 +00:00
Tomas Votruba 4e3847e1bc Updated Rector to commit 3c07468691132d0246e55627495a1e7d4cd76a8d
3c07468691 [DX] Localize few PackageBuilder classes (#2884)
2022-09-01 19:50:06 +00:00
Tomas Votruba 6c20d257e3 Updated Rector to commit d3d18d442c8f2ca64f5ebef5c7a7541938fa1e2a
d3d18d442c keep relative paths
2022-09-01 09:30:44 +00:00
Tomas Votruba 5edd3689a8 Updated Rector to commit bb59a7c99ad30770689fe011c89377402bf6c7ba
bb59a7c99a [DX] Inline symplify/astral to use only active classes (#2851)
2022-08-29 20:49:28 +00:00
Tomas Votruba f7bb838601 Updated Rector to commit f0425bc3cb3d5855da1bff9c38b872a9003e357b
f0425bc3cb Improve scope, PHPStan extension types (#2747)
2022-08-09 13:39:17 +00:00
Tomas Votruba 7e0a2dbc82 Updated Rector to commit 6ad7b03704e639c95759d14c67444009c3b93259
6ad7b03704 Revert Add class-string typehint to MethodCallRename (#2739)
2022-08-06 15:23:35 +00:00
Tomas Votruba 9063100051 Updated Rector to commit f99f19cd4328009bad8aaeab7d80f7d920628bca
f99f19cd43 Add class-string typehint to MethodCallRename (#2726)
2022-08-03 12:38:40 +00:00
Tomas Votruba 1d28ca109c Updated Rector to commit 5ec4cff203f68d9578719b54ce3a145efb32bc79
5ec4cff203 [Php56] Handle jump not Expression stmt next initialized on AddDefaultValueForUndefinedVariableRector (#2725)
2022-08-02 06:46:18 +00:00
Tomas Votruba 5bce2cfaec Updated Rector to commit 97ef9ff17fb2a92141621baccae2f52d9659d0e6
97ef9ff17f Improve namespace names validation (#2670)
2022-07-16 12:31:38 +00:00
Tomas Votruba 09e7c38ed0 Updated Rector to commit e302870bd68ae670fdaffe529d26b5e1c5347408
e302870bd6 Improve RectorAssert tests + add assert name on rename configs (#2669)
2022-07-16 11:25:49 +00:00
Tomas Votruba 4b2bd56de7 Updated Rector to commit 6577da612c2824c2add06721b903de4cd438631e
6577da612c [DX] Add input validation for method, property and function name to avoid invalid output ast (#2668)
2022-07-16 09:41:53 +00:00
Tomas Votruba fbc13bfea3 Updated Rector to commit e6e5895517eb301f3fa3b00759b06876cacde836
e6e5895517 [Naming] Skip used in arrow function args on RenameVariableToMatchMethodCallReturnTypeRector (#2599)
2022-07-01 07:39:49 +00:00
Tomas Votruba 138ae66a5b Updated Rector to commit 83f2b16f0c
83f2b16f0c [cs] add static lambda rule [closes #2514]
2022-06-21 15:38:46 +00:00
Tomas Votruba dd31e833a9 Updated Rector to commit ce1c29184d
ce1c29184d [scoped] change only year and month, to make diff esaier to see; autoload is handled already
2022-06-11 12:27:46 +00:00
Tomas Votruba b4891e547c Updated Rector to commit a5340c6f06
a5340c6f06 [Renaming] Do not rename docblock same name not found in use inside namespace (#2471)
2022-06-11 11:59:10 +00:00
Tomas Votruba a9ffd906d7 Updated Rector to commit 368dbb048c
368dbb048c docs: fix instruction in CONTRIBUTING.md (#2470)
2022-06-10 05:55:49 +00:00
Tomas Votruba 7e1e20e9f2 Updated Rector to commit 17b86d4b77
17b86d4b77 [CodeQuality] Remove unnecessary check next return removed no SimplifyIfElseToTernaryRector (#2457)
2022-06-09 06:07:50 +00:00
Tomas Votruba e8d4384fe8 Updated Rector to commit 6c8b3dc9f8
6c8b3dc9f8 [DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector (#2453)
2022-06-08 05:54:40 +00:00
Tomas Votruba 0b4d7cf713 Updated Rector to commit 1a84313089
1a84313089 [Renaming] Skip rename docblock on conflict with alias on RenameClassRector (#2450)
2022-06-07 12:52:01 +00:00
Tomas Votruba b6a8818d00 Updated Rector to commit cbbe410aff
cbbe410aff string prefixing is still needed
2022-06-07 09:46:15 +00:00
Tomas Votruba 9bb996bfce Updated Rector to commit a9779404d3
a9779404d3 try without prefixing string classes
2022-06-07 09:38:27 +00:00
Tomas Votruba bdec76e60e Updated Rector to commit 5ed173f14865e72ba7156645e2a79930152e1cc5
5ed173f148 skip RuleDefinition explicitly
2022-06-07 09:18:30 +00:00
Tomas Votruba bdfd24339f Updated Rector to commit 2e977bd3aad21113e0bb7e2aa9b102f6f1e9246d
2e977bd3aa deploy to original repository
2022-06-07 08:22:29 +00:00
Tomas Votruba 91f5aab952 Updated Rector to commit 4f07a4f30f
4f07a4f30f [Php74] Remove ReservedFnFunctionRector (#2447)
2022-06-07 06:40:10 +00:00
Tomas Votruba aa2cb1b997 Updated Rector to commit 0eba231b07
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 17:12:56 +00:00
Tomas Votruba a28f4b14a4 Updated Rector to commit 2022-06-06 16:43:29 +00:00
Tomas Votruba 07acf2086f Updated Rector to commit 40d9102eab
40d9102eab [Renaming] Do not Rename Docblock inner Namespace on RenameClassRector (#2441)
2022-06-06 06:00:07 +00:00
Tomas Votruba 3113a2404c Updated Rector to commit dbb54b83cc
dbb54b83cc [automated] Re-Generate Nodes/Rectors Documentation (#2438)
2022-06-05 00:39:10 +00:00
Tomas Votruba bf28f06a74 Updated Rector to commit 6b9984175f
6b9984175f [Naming] Fix PseudoNamespaceToNamespaceRector reporting on change (#2426)
2022-06-04 08:16:56 +00:00
Tomas Votruba 5349987b1f Updated Rector to commit c3581f9d33
c3581f9d33 Skip used in new ctor (#2425)
2022-06-04 07:44:43 +00:00
Tomas Votruba 98eb7617da Updated Rector to commit 283a9af3f0
283a9af3f0 [Renaming] Skip docblock rename different namespace on RenameClassRector (#2419)
2022-06-04 07:39:10 +00:00
Tomas Votruba 14da17860d Updated Rector to commit 7722a57d80
7722a57d80 [PHP 8.0] Add return type support to ConstantListClassToEnumRector (#2420)
2022-06-03 07:23:26 +00:00
Tomas Votruba 02c0f07aa0 Updated Rector to commit 9187ff0430
9187ff0430 [Scoped] Update full_build.sh to reflect the current Github workflow for build scoped (#2413)
2022-06-02 07:23:49 +00:00
Tomas Votruba 780f0d3ad8 Updated Rector to commit 06b0b325da
06b0b325da remove victor, it handles only metafiles, not unused classes
2022-06-01 07:38:23 +00:00
Tomas Votruba 0501290a9d Updated Rector to commit dc6bd9680c
dc6bd9680c [e2e] Handle Parent Property empty missing Scope on StaticCallToMethodCallRector+RenameClassRector (#2396)
2022-05-31 07:17:00 +00:00
Tomas Votruba d035c86f90 Updated Rector to commit a7e66d67bd
a7e66d67bd remove excluded files
2022-05-30 00:02:22 +00:00
Tomas Votruba 9a9e8960ee Updated Rector to commit 9cd69c2b3d
9cd69c2b3d [automated] Re-Generate Nodes/Rectors Documentation (#2385)
2022-05-29 00:36:37 +00:00
Tomas Votruba 94e64470da Updated Rector to commit 012e9ad553
012e9ad553 Add annotation to attribute core rename in AnnotationToAttributeRector (#2384)
2022-05-28 00:27:30 +00:00
Tomas Votruba 7e46eb8267 Updated Rector to commit a2d6da8b4e
a2d6da8b4e Back to php-scoper 0.14 with scoping from php 8.0 (#2370)
2022-05-27 11:51:31 +00:00
Tomas Votruba beba7d6efe Updated Rector to commit 1249d947f4
1249d947f4 Try php-scoper 0.17 (#2368)
2022-05-27 11:25:02 +00:00
Tomas Votruba 911a9772d6 Updated Rector to commit e690cd059c
e690cd059c restore downgrade configs
2022-05-27 10:39:50 +00:00
Tomas Votruba 74a2d071eb Updated Rector to commit 3da22b0231
3da22b0231 [Php81] Skip ArrayDimFetch from ArrayObject in Assign var on ReadOnlyPropertyRector (#2363)
2022-05-26 07:20:40 +00:00
Tomas Votruba 9bf9c43163 Updated Rector to commit 66dbb1e307
66dbb1e307 Allow to rename method if in interface (#2362)
2022-05-25 21:43:02 +00:00
Tomas Votruba c5eecc40c0 Updated Rector to commit 4c53b206a4
4c53b206a4 [Php80] Do not remove array<mixed> inside Union type on UnionTypesRector (#2358)
2022-05-25 06:59:11 +00:00
Tomas Votruba 5d8ca84738 Updated Rector to commit f25715b7b3
f25715b7b3 [Php73] Skip Encapsed on StringifyStrNeedlesRector + Temporary Pin PHPStan 1.6.9 (#2352)
2022-05-24 08:37:28 +00:00
Tomas Votruba f89782b964 Updated Rector to commit f134b6183e
f134b6183e [Php71] Ensure return  only when catch of TryCatch removed on MultiExceptionCatchRector (#2350)
2022-05-23 03:50:09 +00:00
Tomas Votruba a2cadae414 Updated Rector to commit 3fe07aa6a1
3fe07aa6a1 [Experiment][Naming] Keep GroupUse Stmt on UseImportsResolver::resolveForNode() (#2349)
2022-05-22 21:05:36 +00:00
Tomas Votruba 2b85976c4c Updated Rector to commit adb6e68c2a
adb6e68c2a [automated] Re-Generate Nodes/Rectors Documentation (#2343)
2022-05-22 00:38:26 +00:00
Tomas Votruba 6fe802bfdc Updated Rector to commit fcadc67328
fcadc67328 add symfony php config option to allow loading route factory (#2339)
2022-05-21 08:48:33 +00:00
Tomas Votruba 6a5ebad0e7 Updated Rector to commit f0a1b688f3
f0a1b688f3 [DowngradePhp80] Apply PHPStan 1.7.x-dev compatible for PhpParameterReflection (#2336)
2022-05-20 10:24:40 +00:00
Tomas Votruba ce9b1cc6e6 Updated Rector to commit 30a53bfd93
30a53bfd93 [DowngradePhp80] Add in arrow function in return support on DowngradeMatchToSwitchRector (#2331)
2022-05-19 06:59:21 +00:00
Tomas Votruba f845008257 Updated Rector to commit 50943ea4f2
50943ea4f2 [CodeQuality] Skip re use variable in assign Expr on InlineArrayReturnAssignRector (#2325)
2022-05-18 01:37:38 +00:00
Tomas Votruba 9ec874fb89 Updated Rector to commit 15d93fa815
15d93fa815 [DeadCode] Handle combine RemoveAlwaysTrueIfConditionRector + RemoveDeadConstructorRector (#2324)
2022-05-17 09:51:50 +00:00
Tomas Votruba 4708d6b081 Updated Rector to commit c0086b7e14
c0086b7e14 [e2e] Add e2e for tests removed node display applied rules with return null (#2320)
2022-05-16 01:19:48 +00:00
Tomas Votruba ad10fd18db Updated Rector to commit 96400215b5
96400215b5 [automated] Re-Generate Nodes/Rectors Documentation (#2314)
2022-05-15 09:42:33 +00:00
Tomas Votruba f2550b0de1 Updated Rector to commit f92d5deca3
f92d5deca3 Fix Scalar_Encapsed node as dynamic in  (#2309)
2022-05-14 02:43:00 +00:00