Commit Graph

3873 Commits

Author SHA1 Message Date
Tomas Votruba
cb0cb645f5 Updated Rector to commit e26c80b297515d924f61ed8518a42cdcbe666e19
e26c80b297 [Traverser] Clean up FileWithoutNamespace check on StmtKeyNodeVisitor.php (#3901)
2023-05-20 15:16:20 +00:00
Tomas Votruba
6404cf85e9 Updated Rector to commit b5807b7bb1d2decb69755554a118f44ee5983fbb
b5807b7bb1 [Parser] Fix key negative on BetterNodeFinder locate stmt on FileWithoutNamespace lookup Declare_ (#3899)
2023-05-19 17:48:51 +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
b2768ca2ed Updated Rector to commit 11b94117e5e915866695379b12dbb5cab0f90b79
11b94117e5 [Parser] Handle just removed stmt on BetterNodeFinder::resolveNodeFromFile() as fall for get next stmt (#3897)
2023-05-19 13:48:58 +00:00
Tomas Votruba
6f986503de Updated Rector to commit 5b990ff50f851726e5d3a28590572c8e3f99bb04
5b990ff50f Bump symplify/phpstan-rules deps (#3894)
2023-05-19 13:30:27 +00:00
Tomas Votruba
4d2dd37572 Updated Rector to commit e6d869b35e2e5785d8691408b490fa6283abb784
e6d869b35e [Parser] Using resolveNeighborNextStmt() in resolveNextNodeFromOtherNode() as well on BetterNodeFinder (#3895)
2023-05-19 12:24:31 +00:00
Tomas Votruba
d9f7fc972a Updated Rector to commit f24703ec719c78e87fc75cdbe6e7eadde51dfde9
f24703ec71 [Parser] Avoid infinite loop due search fallback inline next on BetterNodeFinder (#3893)
2023-05-19 12:06:28 +00:00
Tomas Votruba
51a6ca5220 Updated Rector to commit aef093ee8a5a19bb1351345770ac761ae9e0f655
aef093ee8a [Traverser] Remove next attribute in BetterNodeFinder (#3887)
2023-05-19 11:20:36 +00:00
Tomas Votruba
b90fc1b7fa Updated Rector to commit 9fff8d32f3c52769e97ba3e358e8c43f143f0f92
9fff8d32f3 Using same node compare on AssignManipulator (#3892)
2023-05-19 01:47:43 +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
dd33b8eb95 Updated Rector to commit cee58fb5a940fc1a90aab268bb2288c72d1b726e
cee58fb5a9 [Performance] Remove loop  on BetterNodeFinder (#3889)
2023-05-18 20:10:24 +00:00
Tomas Votruba
11f05b657f Updated Rector to commit 24f8610224663ef71ca2e4007ef89997303f53b9
24f8610224 [NodeTypeResolver] Remove next node on PHPStanNodeScopeResolver (#3888)
2023-05-18 18:55:12 +00:00
Tomas Votruba
ab605a51c8 Updated Rector to commit 1c2865afd4556f1dc27b94e5d18145680c8e7497
1c2865afd4 [Performance] Remove parent lookup on StmtKeyNodeVisitor (#3886)
2023-05-18 15:38:11 +00:00
Tomas Votruba
d977ea6b6f Updated Rector to commit 2766aa8ac4a273b0d0a6e0869eb71eca428fcaf0
2766aa8ac4 [Performance] Reduce repetitive parent lookup on BetterNodeFinder::findFirstNext() by inline search when possible (#3885)
2023-05-18 15:08:46 +00:00
Tomas Votruba
1d3c5ccdb3 Updated Rector to commit b0649221240ae8a57862290534f9cb05135ac018
b064922124 [Traverser] Refactor BetterNodeFinder::findFirstNext() to remove next attribute usage (#3879)
2023-05-18 14:18:42 +00:00
Tomas Votruba
44b12286ff Updated Rector to commit 55d0b08789d0e1cbaaa7f62e8859971cb846294c
55d0b08789 Cherry pick key compare on BetterNodeFinder::resolvePreviousNodeFromFile() (#3884)
2023-05-17 21:26:57 +00:00
Tomas Votruba
765b0f35a3 Updated Rector to commit 9e8880bc4acd34095b0879dbcb514133f1f9a01e
9e8880bc4a Cherry-pick StmtKeyNodeVisitor check not Node (#3883)
2023-05-17 19:54:55 +00:00
Tomas Votruba
219ab6ff69 Updated Rector to commit ae78ef15d1d27bd5f9df02457d02a0fb7d7c3c20
ae78ef15d1 Remove tweak require symplify/smart-file-system (#3882)
2023-05-17 15:38:16 +00:00
Tomas Votruba
569c7dc229 Updated Rector to commit 5e3afcbdafde000f950ee844f22a2b020216cd82
5e3afcbdaf Revert Cleanup CachedContainer invalidation (#3867) (#3880)
2023-05-17 15:07:40 +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
c7f7b9b6bb Updated Rector to commit f0141afbc14283e1d7b2f40b5d30e42ab0045623
f0141afbc1 Cleanup CachedContainer invalidation (#3867)
2023-05-17 13:02:11 +00:00
Tomas Votruba
5a424135e9 Updated Rector to commit a8fdf00925e9b46f3372da01d90d52780d1e802a
a8fdf00925 [PHP 7.0] Add IfIssetToCoalescingRector (#3878)
2023-05-17 09:47:50 +00:00
Tomas Votruba
39a43e0003 Updated Rector to commit f2348ae8c75cafec524ea972ff6af912e8ce7c11
f2348ae8c7 [TypeDeclaration] Add nullable property type support to PropertyTypeFromStrictSetterGetterRector (#3877)
2023-05-17 09:12:37 +00:00
Tomas Votruba
3f89b13d0e Updated Rector to commit 16f3c961ead671df489ff9217d61cdfe40e09ec0
16f3c961ea [CodeQuality] Add typed property support to IssetOnPropertyObjectToPropertyExistsRector (#3876)
2023-05-17 08:38:16 +00:00
Tomas Votruba
5cff4d6dc6 Updated Rector to commit b8e70923f40d50a1c6aecf616d23b362b57321c3
b8e70923f4 Drop AttributeKey::SCOPE in PropertyManipulator (#3874)
2023-05-16 17:24:21 +00:00
Tomas Votruba
ae79c1dc04 Updated Rector to commit 83a4a60b4c48d017694f2a0867f821c33ff5b27c
83a4a60b4c Drop AttributeKey::SCOPE in MethodParameterTypeResolver (#3873)
2023-05-16 17:11:44 +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
56836f25e8 Updated Rector to commit d42fd12f4ad38f29f8e7f3fd19d9bb740f0f9356
d42fd12f4a Improve IfToSpaceshipRector (#3871)
2023-05-16 13:09:11 +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
ddec6bfaa0 Updated Rector to commit c0a042c3b68eb657d7e525ae2c2648d0ec96fb19
c0a042c3b6 Drop AttributeKey::SCOPE in MagicPropertyFetchAnalyzer (#3868)
2023-05-16 10:36:59 +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
0b0fda9095 Updated Rector to commit 99bdd27c00f0a27620f75eeeedc36bb3d505456b
99bdd27c00 [CodeQuality] Remove next attribute usage on SimplifyIfNullableReturnRector (#3866)
2023-05-16 05:46:08 +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
86d7e3ad58 Updated Rector to commit 6156458ef43b1961a0ded5df85ca3fa4c35686e9
6156458ef4 Drop AttributeKey::SCOPE in AssignAndBinaryMap (#3861)
2023-05-15 15:05:45 +00:00
Tomas Votruba
1b8d2812ef Updated Rector to commit c8f697b16d888505c2bfbbcaba1665402091159b
c8f697b16d Remove ToStringToMethodCallRector as not practical and only for demo, FalseReturnClassMethodToNullableRector, as requires detailed custom refactoring (#3854)
2023-05-15 13:05:02 +00:00
Tomas Votruba
73738c0fb1 Updated Rector to commit 3df70bdd234efe4c6f49607df5378fb150b111e7
3df70bdd23 Remove NEXT_NODE from RemoveDuplicatedIfReturnRector (#3858)
2023-05-15 13:00:55 +00:00
Tomas Votruba
1e7e201657 Updated Rector to commit 7a86ac22a0535b75f9e525776a315777029d7bdb
7a86ac22a0 [Privatization] Remove parent attribute set on ClassConstantFactory::createFromProperty() (#3859)
2023-05-15 12:47:34 +00:00
Tomas Votruba
8dce3beed1 Updated Rector to commit c4bab4a7778e11715d720391c5daaa7a89e975ce
c4bab4a777 Remove next from ExplicitBoolCompareRector (#3857)
2023-05-15 12:33:28 +00:00
Tomas Votruba
dca2603280 Updated Rector to commit f5d809ca431215d512bb0ba3894bab4543afb396
f5d809ca43 [CodingStyle] Remove AddFalseDefaultToBoolPropertyRector, as works with unrelaible docblocks (#3856)
2023-05-15 12:19:44 +00:00
Tomas Votruba
89439d883f Updated Rector to commit 95b1789a871adeb6b6555949d3cf32b0b4060613
95b1789a87 Drop AttributeKey::SCOPE in ArrayCallableMethodMatcher (#3835)
2023-05-15 08:51:25 +00:00
Tomas Votruba
4fa709b27b Updated Rector to commit 05c4367a51af6f0d4c56a9ab466aa32a873acc83
05c4367a51 [Printer] Reduce parent attribute usage on BetterStandardPrinter on print ArrowFunction comment (#3855)
2023-05-15 08:40:30 +00:00
Tomas Votruba
7b0f60a033 Updated Rector to commit c24338f5dc0d5ea2469f5078692b6e017f2c3641
c24338f5dc [DX] Add oustide any set to help detecting rules that could be part of some set (#3853)
2023-05-14 23:36:37 +00:00
Tomas Votruba
281f59d306 Updated Rector to commit 7f49261e293df93ac9a81dd49e59ad4abed9ed41
7f49261e29 Make ReturnNeverTypeRector work with type declaration, add it to PHP 8.1 set (#3852)
2023-05-14 22:40:25 +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
270692ae54 Updated Rector to commit 0a7be603fcc467ac3956081bf83db9c0d5350eee
0a7be603fc Remove MakeTypedPropertyNullableIfCheckedRector as old fix of TypedPropertyRector rule, removed months ago (#3851)
2023-05-14 16:14:48 +00:00
Tomas Votruba
a8cb615a7e Updated Rector to commit 7935b2a3c2371e0d9e18ad2b683ac3b53b64d950
7935b2a3c2 Remove MissingClassConstantReferenceToStringRector niche rule that was added just for example sake (#3850)
2023-05-14 16:09:04 +00:00
Tomas Votruba
e02a2a45af Updated Rector to commit 33e59eeadf3da67db8dcdebfc8bef3701a17592a
33e59eeadf Remove UpdateFileNameByClassNameFileSystemRector niche rule that was added just for example sake (#3849)
2023-05-14 16:07:53 +00:00