Commit Graph

883 Commits

Author SHA1 Message Date
Tomas Votruba 5ca50de6b7 Updated Rector to commit b18da7d458c2d240dd50682b31670e134f2b1ed3
b18da7d458 [CodeQuality] Skip on property and class const on CallableThisArrayToAnonymousFunctionRector (#5869)
2024-05-11 18:18:48 +00:00
Tomas Votruba efb3c476c7 Updated Rector to commit ca2988edc997d76a1d7d4b2c6a4f7226478cac7c
ca2988edc9 [CodeQuality] Skip increment variable on else on TernaryFalseExpressionToIfRector (#5867)
2024-05-10 09:40:07 +00:00
Tomas Votruba ee17c27a72 Updated Rector to commit d8f262aa6252740d3a3f17d1f429b7dcf2cc760a
d8f262aa62 [CodeQuality] Skip dynamic second arg or has uppercase second arg on SimplifyStrposLowerRector (#5855)
2024-05-02 09:08:24 +00:00
Tomas Votruba 346b5723b4 Updated Rector to commit 6525345f4d3e594311a7186982087ec17ef8b0ee
6525345f4d [CodeQuality] Fix tautology transformation on identical check on SimplifyTautologyTernaryRector (#5854)
2024-05-02 08:08:51 +00:00
Tomas Votruba 12c115e6f6 Updated Rector to commit 5193d43b644f9d059d9964ebcc6820181a7bca18
5193d43b64 [NodeTypeResolver] Remove unnecessary loop SourceLocator collection on DynamicSourceLocatorProvider (#5852)
2024-05-02 02:21:56 +00:00
Tomas Votruba 1e8aeb3de9 Updated Rector to commit 9ce6af83b6996631fe2a13cca64d25142dc9fb15
9ce6af83b6 [Performance] Early skip NativeFunctionReflection on OptionalParametersAfterRequiredRector (#5836)
2024-04-20 19:24:39 +00:00
Tomas Votruba 8aefc5e967 Updated Rector to commit 1374e15d742f4f36f0bef45db9f8920a589865b3
1374e15d74 [CodeQuality] Add Function_ and FuncCall support on OptionalParametersAfterRequiredRector (#5835)
2024-04-20 11:01:46 +00:00
Tomas Votruba f42da12667 Updated Rector to commit 56e2031ba3eb1886f534e87d6fb533f8b24f6889
56e2031ba3 [CodeQuality] Skip $counter variable exists on ForRepeatedCountToOwnVariableRector (#5828)
2024-04-17 21:03:14 +00:00
Tomas Votruba 53fb366ec6 Updated Rector to commit 9939ced45eb3479a1d8b2b9339512398118b92d9
9939ced45e [CodeQuality] Skip never type on default switch on ExplicitReturnNullRector (#5808)
2024-04-08 09:20:15 +00:00
Tomas Votruba 6678ca05d4 Updated Rector to commit 4a77565302216f6fde71232600cd175422a00965
4a77565302 ExplicitReturnNullRector should skip never return (#5802)
2024-04-05 18:04:27 +00:00
Tomas Votruba 664f4e3a6b Updated Rector to commit 0f1987b0faa8dc1c5e086c9b95457d6018b2cd82
0f1987b0fa Adds a link to the PHP Static Analysis Attributes rector rules (#5787)
2024-04-01 16:51:34 +00:00
Tomas Votruba 0e57251e46 Updated Rector to commit c45f0e2cef30cb0b3090d51fd14dc6ffaa1fc095
c45f0e2cef [CodeQuality] Add Function_ support on ExplicitReturnNullRector (#5762)
2024-03-23 06:38:28 +00:00
Tomas Votruba e18e5ef364 Updated Rector to commit 97e2433a8378ccc6666c67d4a01ace3abc97589f
97e2433a83 [CodeQuality] Allow transform return; to return null; when there is other return with Expr on ExplicitReturnNullRector (#5761)
2024-03-23 06:28:38 +00:00
Tomas Votruba e6bfc79aa2 Updated Rector to commit 8874f25347004e0c19043e8b97b69470193f0941
8874f25347 [CodeQuality] Move Yield_ and YieldFrom check to SilentVoidResolver (#5759)
2024-03-22 20:34:36 +00:00
Tomas Votruba 024ebc62a1 Updated Rector to commit b042152eae866b5578ea15cb38e27ce493937001
b042152eae [CodeQuality] Skip __construct() method on ExplicitReturnNullRector (#5758)
2024-03-22 19:55:35 +00:00
Tomas Votruba e10d636f62 Updated Rector to commit 61c7e9288885218b76a4a9431bba33a37059dea5
61c7e92888 [CodeQuality] No need to re-update doc when already union null doc on ExplicitReturnNullRector (#5757)
2024-03-22 18:09:58 +00:00
Tomas Votruba ce9cc3aafc Updated Rector to commit 576198cf701684dd85ed42530bcb8c54b6c41a02
576198cf70 [CodeQuality] Transform type|void docblock to type|null as well on ExplicitReturnNullRector after add return null (#5756)
2024-03-22 17:50:28 +00:00
Tomas Votruba dd51f7ceed Updated Rector to commit 32bf5c7e7a8da2100f12cbef185c958655d4292d
32bf5c7e7a [CodeQuality] Skip if else return on ExplicitReturnNullRector (#5755)
2024-03-22 16:53:50 +00:00
Tomas Votruba de2b2cf2b4 Updated Rector to commit dc69b1a963dc78ea9fe4ab07b70bc0716e1be341
dc69b1a963 [CodeQuality] Add new rule - ExplicitReturnNullRector (#5753)
2024-03-21 14:39:02 +00:00
Tomas Votruba d9fea10f3e Updated Rector to commit d01d16e9d8c7225e5a45cb2534b1b338f93e5740
d01d16e9d8 [CodeQuality] Skip compare string with stringable object on UseIdenticalOverEqualWithSameTypeRector (#5718)
2024-03-14 03:13:41 +00:00
Tomas Votruba 4be56b3640 Updated Rector to commit a775c65eeccc0c6ed106adbe836ab114f37c5da4
a775c65eec [CodeQuality] Skip throw after foreach with return in loop on SimplifyForeachToCoalescingRector (#5714)
2024-03-11 11:19:03 +00:00
Tomas Votruba 28f5dbde13 Updated Rector to commit c14f8d45175bd4c10fef503e350d677c4a73ce29
c14f8d4517 [Php72][TypeDeclaration] Rollback tweak infinite loop handling on DeclareStrictTypesRector (#5700)
2024-03-08 06:34:02 +00:00
Tomas Votruba a9ac2b236c Updated Rector to commit 62254600d1d3f036ae3e9c502613c4ac96a8b71b
62254600d1 [CodeQuality] Add support for compare $this::class compare with string on UseIdenticalOverEqualWithSameTypeRector (#5698)
2024-03-07 16:34:25 +00:00
Tomas Votruba a49cabd869 Updated Rector to commit 4a1880bd2976e3cda6db8b1ca27c44c2c933b9e4
4a1880bd29 [CodeQuality] Add Equal and NotEqual support on SimplifyIfReturnBoolRector (#5697)
2024-03-07 13:46:36 +00:00
Tomas Votruba 769ac36c32 Updated Rector to commit 1cd83bef6196e8b8913d2252a6c8a826bafcf62a
1cd83bef61 [CodeQuality] Handle array destructuring of unpack on ArrayMergeOfNonArraysToSimpleArrayRector (#5682)
2024-03-03 02:33:19 +00:00
Tomas Votruba c34bb45766 Updated Rector to commit 2846b015388fb1eb6d65941481fe9340908c1f79
2846b01538 [CodeQuality] Skip combine var with property fetch on InlineArrayReturnAssignRector (#5681)
2024-03-03 02:19:56 +00:00
Tomas Votruba 659d1a42fb Updated Rector to commit c591bd291650ab22554ffd819e76d01a1a405719
c591bd2916  [CodeQuality] Skip nested array on InlineArrayReturnAssignRector  (#5680)
2024-03-03 02:09:46 +00:00
Tomas Votruba 695c190be3 Updated Rector to commit 94b5561ca87ee6825a098c7c506b774582bf3354
94b5561ca8 chore: bump min version of github actions (fix deprecations) (#5675)
2024-03-01 20:02:28 +00:00
Tomas Votruba 35b646559b Updated Rector to commit 914349ca92cb1df4463b46f541c6e249045bd4ca
914349ca92 [CodeQuality] Skip not autoloaded parent class on CompleteDynamicPropertiesRector (#5636)
2024-02-18 18:32:48 +00:00
Tomas Votruba 6ef7f81fc3 Updated Rector to commit c4dd05e2e3ae6359ff4eb57ce7d7bd7619da139d
c4dd05e2e3 [CodeQuality] Add StaticToSelfStaticMethodCallOnFinalClassRector (#5621)
2024-02-15 12:52:16 +00:00
Tomas Votruba 53742c371b Updated Rector to commit 70fa502a59dfb8f81011a46a456e1ccb4051be76
70fa502a59 [CodeQuality] Skip private static call from static:: on LocallyCalledStaticMethodToNonStaticRector (#5620)
2024-02-15 09:08:32 +00:00
Tomas Votruba c65d65d663 Updated Rector to commit 7976482b3b067758fc88b000794e8cb94a4b2389
7976482b3b ExplicitBoolCompareRector: skip phpdoc (#5567)
2024-02-06 14:37:09 +00:00
Tomas Votruba b0211bc3d8 Updated Rector to commit fa75fcf0d1445f90cff9199875aba352671795f9
fa75fcf0d1 [Performance][PhpVersionResolver] Cache resolve platform/require from composer.json on ProjectComposerJsonPhpVersionResolver (#5542)
2024-02-01 23:54:40 +00:00
Tomas Votruba cd34331aa7 Updated Rector to commit c2cdcd3922d06924acfbf4a792eec61dccbee03e
c2cdcd3922 [CodeQuality] Fix logic start with [^ on SimplifyRegexPatternRector to ensure only skip on this case (#5495)
2024-01-23 16:37:59 +00:00
Tomas Votruba aa518bb95d Updated Rector to commit dd02659ec90240c9452ccb86e48fb53879572935
dd02659ec9 [CodeQuality] Skip surplus open square bracket on SimplifyRegexPatternRector (#5494)
2024-01-23 15:52:42 +00:00
Tomas Votruba 8b20f236c0 Updated Rector to commit 2ec55701f292770fc7be3ca6e434d437e59c333b
2ec55701f2 [Performance] Fix filter cache on SkippedClassResolver (#5460)
2024-01-13 01:44:47 +00:00
Tomas Votruba e61f4b3c7b Updated Rector to commit f24b01ae0af6cdf4517fee0d74d79cc39d31f602
f24b01ae0a Remove CI status for rector/phpstan-rules on Readme (#5456) (#5458)
2024-01-11 15:31:55 +00:00
Tomas Votruba 8728d93e41 Updated Rector to commit 55a787b9a2a18d7b131e74f0bc0d244989f6c92e
55a787b9a2 [CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#5436)
2024-01-06 05:25:58 +00:00
Tomas Votruba 7e7a2f067a Updated Rector to commit 476cfb00cb6a94cb64badf9472ee78f33bdf44b3
476cfb00cb disable fallback for now
2024-01-02 02:40:38 +00:00
Tomas Votruba 7ba32aac1f Updated Rector to commit e12c73eb339a847bcd717025abf5bc43f1cd0e4c
e12c73eb33 [psr-4] Move tests to main namespace, as part of /src and /packages merge - step 2 (#5407)
2024-01-01 00:20:45 +00:00
Tomas Votruba 462b60a70a Updated Rector to commit c6ca4f1f5ccdf73d9aa0f8f441267725e07aee67
c6ca4f1f5c [Performance][TypeDeclaration] Avoid using AstResolver on class is on same file on AllAssignNodePropertyTypeInferer (#5387)
2023-12-24 03:11:42 +00:00
Tomas Votruba 40ac5bade5 Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a
4283beff2f [CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373)
2023-12-18 12:32:23 +00:00
Tomas Votruba 335a3861f8 Updated Rector to commit 63201f76725831988f1484476f6f84e0976a5742
63201f7672 [CodeQuality] Skip Superglobals variable on SimplifyEmptyCheckOnEmptyArrayRector (#5369)
2023-12-17 09:24:20 +00:00
Tomas Votruba 1bcbe800e1 Updated Rector to commit ea5b331e7ea67a03b4c3f162c566a8dbfd74d55d
ea5b331e7e [CodeQuality] Add RemoveUselessIsObjectCheckRector (#5316)
2023-12-03 12:25:03 +00:00
Tomas Votruba b698053254 Updated Rector to commit 5c8fa12ec90e4d4b55fd05f48509c538c243482d
5c8fa12ec9 [Doc] Typo fix on sample code documentation on SimplifyForeachToCoalescingRector (#5308)
2023-12-02 05:05:22 +00:00
Tomas Votruba cb8a63ca31 Updated Rector to commit 71c22e20d9a3b2ba187515711b13fca40b595d93
71c22e20d9 [CodeQuality] Skip with else on SimplifyForeachToCoalescingRector (#5307)
2023-12-02 04:51:32 +00:00
Tomas Votruba c5421dfd82 Updated Rector to commit e48234e23981f4022e704bc500b9a9197727e87e
e48234e239 Skip RenameMethodRector in never (#5305)
2023-12-01 09:49:11 +00:00
Tomas Votruba 3aaf5b74fb Updated Rector to commit b5f434b53c4c6fceb88c19d4656e4f11c6092f3c
b5f434b53c [CodeQuality] Make CommonNotEqualRector skip if not <> (#5292)
2023-11-27 16:03:30 +00:00
Tomas Votruba 184cf49468 Updated Rector to commit f9de5d311e7e69d1ad2cb5f3087970d8b9335920
f9de5d311e [Php80] Handle RenameClassRector+AnnotationToAttributeRector with auto import and existing attribute defined (#5219)
2023-11-02 03:20:18 +00:00
Tomas Votruba a3cb68c58c Updated Rector to commit 5f86e6bb082d06c1fc7f3ca53a9e42389319c3eb
5f86e6bb08  [CodeQuality] Add negated support on SingleInArrayToCompareRector  (#5205)
2023-10-28 06:44:30 +00:00