Commit Graph

300 Commits

Author SHA1 Message Date
Tomas Votruba 54b25e4291 Updated Rector to commit 2dccbb6b176a836e174babbaf6611a0d4730c55c
2dccbb6b17 Remove removeNode() from RemoveDeadReturnRector, merge RemoveLastReturnRector to RemoveDeadReturnRector (#4085)
2023-06-05 14:01:36 +00:00
Tomas Votruba b6483cd8b4 Updated Rector to commit dab448289eef1d79fe75e61f8fda1da1b7f9eaab
dab448289e [NodeTypeResolver] Handle crash after next exit() on no namespaced code after removal next attribute (#4074)
2023-06-05 09:55:14 +00:00
Tomas Votruba c440a59574 Updated Rector to commit 063c488b9b6a4eefe4a65fb6236f0b00b0e14890
063c488b9b Remove removeNode() from RemoveEmptyMethodCallRector (#4071)
2023-06-04 22:44:01 +00:00
Tomas Votruba 18f8207b59 Updated Rector to commit 861022a70bd9f9c8b91f20c7dfacb0d297d33e9a
861022a70b Remove RemoveAlwaysTrueConditionSetInConstructor, as overly specific and not practical; better handle with PHPStan (#4065)
2023-06-04 17:57:18 +00:00
Tomas Votruba 335ab50008 Updated Rector to commit 2d99c8b3661934f33155ddb5d46e62c7ba14715a
2d99c8b366 Remove removeNode() from InlineConstructorDefaultToPropertyRector (#4062)
2023-06-04 17:26:50 +00:00
Tomas Votruba 0ab58ff847 Updated Rector to commit 165609bd78cf7dbb4889f4edd75cdb336c89c1aa
165609bd78 [FileProcessor] Add warning instead of skip InlineHTML on PhpFileProcessor (#4058)
2023-06-04 16:58:56 +00:00
Tomas Votruba 12850de413 Updated Rector to commit 203be2b3076a4e7f2f80cee721aa20186868a604
203be2b307 skip tracy from downgrade one
2023-06-03 16:26:26 +00:00
Tomas Votruba 062552321e Updated Rector to commit 4635c3936d920f9350e985772156a51b40604c9c
4635c3936d [PHP+HTML cleanup] Remove MixPhpHtmlDecorator (#4054)
2023-06-03 13:48:48 +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 bfd8f1a220 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-05-31 13:27:13 +00:00
Tomas Votruba b655a25951 Updated Rector to commit 81e8c74b0ea2a107db681ee21c13925837b84abc
81e8c74b0e [NodeManipulator] Use ReflectionResolver instead of BetterNodeFinder parent lookup on ClassMethodManipulator (#4035)
2023-05-31 13:19:19 +00:00
Tomas Votruba 1a69dcf241 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:18:02 +00:00
Tomas Votruba 9fd6682367 Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 09:05:58 +00:00
Tomas Votruba 28d2a3ced0 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:05:54 +00:00
Tomas Votruba 1e426f9497 Updated Rector to commit cc6dc93b566930e66b61ee04205ef943a8d9d339
cc6dc93b56 [CodeQuality] Reduce parent lookup on LocalPropertyAnalyzer::resolveFetchedPropertiesToTypesFromClass() (#4004)
2023-05-28 20:47:12 +00:00
Tomas Votruba ea8041895c Updated Rector to commit ebe2a37fe2c0c387e655259548ab7a6f76b3f298
ebe2a37fe2 [Php74][Privatization] Refactor ParentPropertyLookupGuard to use ClassReflection to reduce IO (#3993)
2023-05-27 15:46:25 +00:00
Tomas Votruba 88a00032b7 Updated Rector to commit 754fca568f1d19b792bd5ccd476d10c675ba77f3
754fca568f [Php74] Remove parent attribute on PropertyTypeChangeGuard (#3992)
2023-05-27 12:07:30 +00:00
Tomas Votruba c613309b06 Updated Rector to commit 1e0a1ceb897de085e3b8a68fbf88b4028d2064b0
1e0a1ceb89 Return nodes directly in MoneyFormatToNumberFormatRector (#3986)
2023-05-27 10:18:32 +00:00
Tomas Votruba eb19a0084e Updated Rector to commit 18d8df639c4376c2784a585eb5deafeda971597e
18d8df639c Refactor away PARENT_NODE from AssignArrayToStringRector (#3983)
2023-05-27 09:26:50 +00:00
Tomas Votruba 2774b5f9dd Updated Rector to commit c70a5b8fdbbb3306603c67a972265872eaa3da2b
c70a5b8fdb Refactor away from PARENT_NODE in ListToArrayDestructRector (#3982)
2023-05-27 08:27:32 +00:00
Tomas Votruba 3267b9499d Updated Rector to commit 385a9cb5f1235808c7226c2efccdc10fc6de6542
385a9cb5f1 [Php74] Skip parenthesize ternary if on ParenthesizeNestedTernaryRector (#3980)
2023-05-26 23:56:10 +00:00
Tomas Votruba 28adaf00cf Updated Rector to commit 041fa832d50b0548594e5f8aa53036b394016c27
041fa832d5 Refactor from PARENT_NODE in RemoveParentCallWithoutParentRector (#3963)
2023-05-25 14:40:36 +00:00
Tomas Votruba 511b8597e6 Updated Rector to commit fc1fabe1a396339cbf1d9d0346f3f35bc75a33c3
fc1fabe1a3 [PostRector] Remove parent lookup on ClassRenamingPostRector (#3959)
2023-05-25 12:11:39 +00:00
Tomas Votruba f7d28cee5d Updated Rector to commit 794bc8b5484e3eafcc91f85d443f665565c4ad44
794bc8b548 Remove PARENT_NODE from ForeachItemsAssignToEmptyArrayToAssignRector (#3958)
2023-05-25 09:21:23 +00:00
Tomas Votruba 2a39baa0c1 Updated Rector to commit 179b5cba82257fd1d310301679a1913db458809e
179b5cba82 Make ChangeGlobalVariablesToPropertiesRector add properties directly, remove Nette inject methods (#3957)
2023-05-24 18:48:59 +00:00
Tomas Votruba eb3e6c221d Updated Rector to commit ce12406878b202f9ceb1506a546e732ab1ca2716
ce12406878 Remove ChangeReadOnlyVariableWithDefaultValueToConstantRector overly complex and risky, better job for PHPStan (#3954)
2023-05-24 15:09:06 +00:00
Tomas Votruba 7117aa039a Updated Rector to commit c4b524e77a5eccd387d1ebe5b01ab3ae680049a3
c4b524e77a Remove GetAndSetToMethodCallRector, as not practical and used for single legacy job (#3953)
2023-05-24 13:47:55 +00:00
Tomas Votruba a32354e5eb Updated Rector to commit 3eadce164860c1d4465e40fd5e07fb11d3aa1b99
3eadce1648 [NodeTypeResolver] Reduce parent attribute usage on PHPStanNodeScopeResolver (#3943)
2023-05-24 04:20:01 +00:00
Tomas Votruba f7fccae5ba Updated Rector to commit e04e51c25d95e3b2133adca5f01f8e7e002534af
e04e51c25d [DeadCode][Php56] Handle infinite loop on RemoveUnusedVariableAssignRector+AddDefaultValueForUndefinedVariableRector (#3940)
2023-05-23 22:15:37 +00:00
Tomas Votruba 62ef1326dc Updated Rector to commit 8a74ea74d5501f5f850632c834878468eaa39b8e
8a74ea74d5 [DeadCode] Remove RemoveDuplicatedInstanceOfRector as hardly practical (#3936)
2023-05-23 13:59:54 +00:00
Tomas Votruba ee06436c96 Updated Rector to commit d603b00818cfabc8aa1699b1154145e68bdb60a0
d603b00818 Remove PARENT_NODE from RemoveUnusedVariableAssignRector (#3935)
2023-05-23 13:36:55 +00:00
Tomas Votruba 8724ff4d63 Updated Rector to commit 392d81f7b01253711f7aa48344673b5f01b1c325
392d81f7b0 [DeadCode] Remove RemoveDuplicatedIfReturnRector as can lead to unexpeced consequences, better use static analysis and contextual handling (#3926)
2023-05-22 13:11:03 +00:00
Tomas Votruba f6d5507bbf Updated Rector to commit d90c645a1fbe976efee82c32fd6a5a021c33645a
d90c645a1f [DX] Try removing resolved name attribute, as namespacedName is already part of named nodes (#3921)
2023-05-22 08:26:02 +00:00
Tomas Votruba e59b9e0910 Updated Rector to commit a813b1747dc78a40a22c993b1d8ebbc47e261298
a813b1747d Remove ChangeOrIfReturnToEarlyReturnRector as makes code harder to read by duplication, rather use PHSPtan and extract method (#3916)
2023-05-22 07:55:47 +00:00
Tomas Votruba aa57f0b8dc Updated Rector to commit 8ec3a2722663bd6cc8e5d0714178ba03bc43056f
8ec3a27226 [1.0] Add public method BetterNodeFinder::resolvePreviousNode() and BetterNodeFinder::resolveNextNode() (#3896)
2023-05-21 22:28:59 +00:00
Tomas Votruba c6385617d2 Updated Rector to commit a4d6d414fb2f6ce98c792178895ab01664fab358
a4d6d414fb [TypeDeclaration] Add BoolReturnTypeFromStrictScalarReturnsRector (#3898)
2023-05-19 15:03:57 +00:00
Tomas Votruba 9842940c7a Updated Rector to commit 9cfeac03ed7ae6b684dfd720d7765af25e3a6d08
9cfeac03ed [Privatization][TypeDeclaration] Do not replace non-readonly property to constant on ChangeReadOnlyPropertyWithDefaultValueToConstantRector+TypedPropertyFromAssignsRector (#3891)
2023-05-19 00:31:57 +00:00
Tomas Votruba 8ef3bb6268 Updated Rector to commit af2a06e85ea318a0a294fce64c157f6ae9887383
af2a06e85e [TypeDeclaration] Skip possible void on ReturnTypeFromReturnNewRector (#3890)
2023-05-18 21:38:08 +00:00
Tomas Votruba 95d72b47e8 Updated Rector to commit c018b8b71b32e9654f7e884a20573a741184572e
c018b8b71b [Traverser] Add StmtKeyNodeVisitor to remove next and prev attribute on BetterNodeFinder (#3870)
2023-05-17 13:57:56 +00:00
Tomas Votruba 5457dd1412 Updated Rector to commit 02500aaf35f5ae96f0522a85b0173342e1da2144
02500aaf35 Remove NEXT/PREV node usage from AlwaysStrictScalarExprAnalyzer (#3872)
2023-05-16 14:24:15 +00:00
Tomas Votruba 3847b0c3b5 Updated Rector to commit d2ae72e1fe616bb5c2d98c497a59991cfb5cca55
d2ae72e1fe Remove NEXT_NODE from IfToSpaceshipRector (#3860)
2023-05-16 12:50:39 +00:00
Tomas Votruba 1c94a7b40a Updated Rector to commit ef257221acece7d2ea66c292fceb2718c87e0b53
ef257221ac Make check more explicit (#3869)
2023-05-16 10:30:50 +00:00
Tomas Votruba 1c829c24c3 Updated Rector to commit 5d78e95c82dc59cd66919b703193d0978d01b902
5d78e95c82 Fix phpunit error on rector/rector:dev-main due to container cache (#3865)
2023-05-16 04:29:24 +00:00
Tomas Votruba 9ae4a949d6 Updated Rector to commit cc3354aa8e764fd028f5de5ac1fb76e9304bdbbd
cc3354aa8e [Parser] Remove next attribute usage on InlineCodeParser (#3864)
2023-05-15 17:50:04 +00:00
Tomas Votruba bd630a0db2 Updated Rector to commit 3bdd519e03e957461a48105820c20b35706f036e
3bdd519e03 Dump dependency container and re-use it - 35% faster test-suite (#3809)
2023-05-15 15:58:52 +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 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 0b3c5d9bcc Updated Rector to commit f22ddc8f18ef345d5e9c99cbb667548c3c854d7d
f22ddc8f18 Add not null compare to FlipTypeControlToUseExclusiveTypeRector (#3513)
2023-03-23 23:21:34 +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